Skip to content

Commit

Permalink
Sync with Syntax Dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
terryburton committed Sep 22, 2024
1 parent 97e296b commit 62fa1ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/c-lib/syntax/gs1syntaxdictionary-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
#define GS1_SYNTAXDICTIONARY_UTILS_H

#include "gs1syntaxdictionary.h"

#include <assert.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>


/**
Expand Down Expand Up @@ -80,7 +85,7 @@ do { \
do { \
int w = CHAR_BIT * sizeof(field[0]); \
assert((size_t)(bit/w) < sizeof(field) / sizeof(field[0])); \
if (field[bit/w] & (1ull << (w-1) >> (bit%w))) \
if (field[bit/w] & (UINT64_C(1) << (w-1) >> (bit%w))) \
valid = 1; \
} while (0)

Expand Down

0 comments on commit 62fa1ee

Please sign in to comment.