Skip to content

Commit 8422cce

Browse files
committed
Use literal 0x7fffffff instead of macro INT_MAX
The macro can expand to different strings depending on the compiler, i.e. 0x7fffffff or 2147483647.
1 parent 5b50dee commit 8422cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/TableGen/DirectiveEmitter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class Versioned {
119119
#define STRUCT_VERSION_RANGE \
120120
struct VersionRange { \
121121
int Min = 1; \
122-
int Max = INT_MAX; \
122+
int Max = 0x7fffffff; \
123123
}
124124

125125
STRUCT_VERSION_RANGE;

0 commit comments

Comments
 (0)