From 6083db9d13eaaceec7d43a66e2baeb6902c3f36e Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 10 Apr 2025 16:10:29 +0200 Subject: pkg/csource: enforce the bit size of -1 syscall() is a variadic function, so we need to be careful when passing const values in there without specifying their type. For -1, we did not specify it, and on 64 bit architectures the de facto passed value was 0xFFFFFFFF instead of 0xFFFFFFFFFFFFFFFF. Fix it and add a test. Closes #5921. --- sys/test/csource.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') diff --git a/sys/test/csource.txt b/sys/test/csource.txt index 4efdebb2f..de32bf206 100644 --- a/sys/test/csource.txt +++ b/sys/test/csource.txt @@ -15,3 +15,4 @@ csource4(buf ptr[in, array[const[0x30, int8], 10]]) csource5(buf ptr[in, array[const[0x3130, int16], 5]]) csource6(buf ptr[in, array[const[0x3130, int16be], 6]]) csource7(flag flags[bitmask]) +csource8(num int64) -- cgit mrf-deployment