mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibCrypo: Simplify mixed-sign bitwise_or
No behavior change.
This commit is contained in:
committed by
Ali Mohammad Pur
parent
2392f65345
commit
e09f74903e
Notes:
sideshowbarker
2024-07-17 20:40:00 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/e09f74903e8 Pull-request: https://github.com/SerenityOS/serenity/pull/11996 Reviewed-by: https://github.com/alimpfard
@@ -44,6 +44,7 @@ describe("correct behavior", () => {
|
||||
|
||||
expect(1n | 2n).toBe(3n);
|
||||
expect(0n | -1n).toBe(-1n);
|
||||
expect(0n | -2n).toBe(-2n);
|
||||
|
||||
expect(5n ^ 3n).toBe(6n);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user