]> git.draconx.ca Git - dxcommon.git/blobdiff - t/packtestu64.c
pack: Fix 64-bit tests on old HP cc.
[dxcommon.git] / t / packtestu64.c
index 217404f2a90916fe7d28e8a1b722e2de9b6ea611..5620f342ef689414d2b5b8d1f658821c7d4a29b9 100644 (file)
@@ -1,3 +1,13 @@
+/*
+ * Copyright © 2015, 2023 Nick Bowler
+ *
+ * Test application to verify 64-bit unsigned unpacking functions.
+ *
+ * License WTFPL2: Do What The Fuck You Want To Public License, version 2.
+ * This is free software: you are free to do what the fuck you want to.
+ * There is NO WARRANTY, to the extent permitted by law.
+ */
+
 #include "pack.h"
 #include "tap.h"
 
@@ -24,11 +34,11 @@ int main(void)
        tap_plan(6);
 
        test(unpack_64_be, zero,         0);
-       test(unpack_64_be, minus_one,    0xffffffffffffffff);
-       test(unpack_64_be, test_pattern, 0xdeadbeeff00dcafe);
+       test(unpack_64_be, minus_one,    0xffffffffffffffffll);
+       test(unpack_64_be, test_pattern, 0xdeadbeeff00dcafell);
        test(unpack_64_le, zero,         0);
-       test(unpack_64_le, minus_one,    0xffffffffffffffff);
-       test(unpack_64_le, test_pattern, 0xfeca0df0efbeadde);
+       test(unpack_64_le, minus_one,    0xffffffffffffffffll);
+       test(unpack_64_le, test_pattern, 0xfeca0df0efbeaddell);
 #else
        tap_skip_all("no 64-bit support");
 #endif