summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-02-22 22:53:29 +0100
committerFedja Beader <fedja@protonmail.ch>2025-02-22 22:53:29 +0100
commit7262fc7f4405407ae7142df1ecbee6f7738e4da1 (patch)
tree1b15e5f8d6ba886915563afddc42a6ae16d3970c
parent9e0e015371ae915f3c205f06b69e0290d60bb870 (diff)
downloadserverdata-simplify_bitmask_count.tar.gz
serverdata-simplify_bitmask_count.tar.bz2
serverdata-simplify_bitmask_count.tar.xz
serverdata-simplify_bitmask_count.zip
Herc really doesen't like us setting the upper bitsimplify_bitmask_count
-rw-r--r--npc/dev/test.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/dev/test.txt b/npc/dev/test.txt
index e74d4e7d5..d8a3169ad 100644
--- a/npc/dev/test.txt
+++ b/npc/dev/test.txt
@@ -602,9 +602,9 @@ function script HerculesSelfTestHelper {
// bit flag helpers
callsub(OnCheck, "bitmask_count(0)", bitmask_count(0), 0);
callsub(OnCheck, "bitmask_count(1)", bitmask_count(1), 1);
- // first bit falls out of type int32_t
- callsub(OnCheck, "bitmask_count(3 << 30)", bitmask_count(3 << 30), 1);
- callsub(OnCheck, "bitmask_count(0xaaaaAAAA)", bitmask_count(0xaaAAaaAA), 16);
+ // first bit falls out of type int32_t... turns into a script error.
+ //callsub(OnCheck, "bitmask_count( << 30)", bitmask_count(3 << 30), 1);
+ callsub(OnCheck, "bitmask_count(0x55555555)", bitmask_count(0x55555555), 16);
// Constants