summaryrefslogtreecommitdiffstats
path: root/libsyscalls_get_datatype_description.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-12-05 00:03:04 +0100
committerMattias Andrée <maandree@kth.se>2023-12-05 00:03:04 +0100
commit58dd684c4e86944301959a140dbed9746df35779 (patch)
treea2702ea4f66b2a58711ee22eb7449c74b1ecf0d1 /libsyscalls_get_datatype_description.c
parentFirst commit (diff)
downloadlibsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.gz
libsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.bz2
libsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.xz
Second commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libsyscalls_get_datatype_description.c')
-rw-r--r--libsyscalls_get_datatype_description.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsyscalls_get_datatype_description.c b/libsyscalls_get_datatype_description.c
index 1a4cb59..d790531 100644
--- a/libsyscalls_get_datatype_description.c
+++ b/libsyscalls_get_datatype_description.c
@@ -390,7 +390,7 @@ not_os_dependent:
unsigned char bytebits;
for (i = 0; larger_type.byteorder[i]; i++)
- if (!~larger_type.byteorder[i])
+ if (LIBSYSCALLS_IS_BYTEORDER_END(larger_type.byteorder[i]))
abort();
bytebits = larger_type.byteorder[i];
bytemask = (1ULL << bytebits) - 1ULL;