mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd::stringops: Fix missing boolmask in character replace transforms.
This commit is contained in:
parent
f7945918c6
commit
96fa20244b
1 changed files with 4 additions and 4 deletions
|
@ -254,8 +254,8 @@ noexcept
|
|||
(const char p) -> char
|
||||
{
|
||||
return 0
|
||||
| ((p == before) & after)
|
||||
| ((p != before) & p)
|
||||
| (boolmask<char>(p == before) & after)
|
||||
| (boolmask<char>(p != before) & p)
|
||||
;
|
||||
});
|
||||
|
||||
|
@ -280,8 +280,8 @@ noexcept
|
|||
(const char p) -> char
|
||||
{
|
||||
return 0
|
||||
| ((p == before) & after)
|
||||
| ((p != before) & p)
|
||||
| (boolmask<char>(p == before) & after)
|
||||
| (boolmask<char>(p != before) & p)
|
||||
;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue