diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2025-01-05 14:24:49 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2025-01-05 14:24:49 +0100 |
commit | a676a516701789730aa482bcef4adcb683ba0140 (patch) | |
tree | 6c5b56d13162e537bae0ed373a9addf9be73af56 /libphobos/src/std/regex | |
parent | 3dfad340cb140d64b8c0ecab05fa329238ebd06b (diff) | |
download | gcc-a676a516701789730aa482bcef4adcb683ba0140.zip gcc-a676a516701789730aa482bcef4adcb683ba0140.tar.gz gcc-a676a516701789730aa482bcef4adcb683ba0140.tar.bz2 |
d: Merge upstream dmd, druntime 07bc5b9b3c, phobos de1dea109
Synchronizing with the upstream release of v2.109.0.
D front-end changes:
- Import dmd v2.109.0.
D runtime changes:
- Import druntime v2.109.0.
Phobos changes:
- Import phobos v2.109.0.
gcc/d/ChangeLog:
* decl.cc (DeclVisitor::finish_vtable): Update for new front-end
interface.
* dmd/MERGE: Merge upstream dmd 07bc5b9b3c.
* dmd/VERSION: Bump version to v2.109.0.
libphobos/ChangeLog:
* libdruntime/MERGE: Merge upstream druntime 07bc5b9b3c.
* src/MERGE: Merge upstream phobos de1dea109.
Diffstat (limited to 'libphobos/src/std/regex')
-rw-r--r-- | libphobos/src/std/regex/internal/ir.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libphobos/src/std/regex/internal/ir.d b/libphobos/src/std/regex/internal/ir.d index 04b902f..25566d6 100644 --- a/libphobos/src/std/regex/internal/ir.d +++ b/libphobos/src/std/regex/internal/ir.d @@ -318,7 +318,7 @@ struct Bytecode @property bool backreference() const { assert(code == IR.GroupStart || code == IR.GroupEnd); - return cast(bool)(raw & 1 << 23); + return (raw & 1 << 23) != 0; } //mark as local reference (for backrefs in lookarounds) @@ -332,7 +332,7 @@ struct Bytecode @property bool localRef() const { assert(code == IR.Backref); - return cast(bool)(raw & 1 << 23); + return (raw & 1 << 23) != 0; } //human readable name of instruction |