summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffi.c')
-rw-r--r--ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi.c b/ffi.c
index 70d4bb6d..bbe9e241 100644
--- a/ffi.c
+++ b/ffi.c
@@ -3126,7 +3126,7 @@ static val make_ffi_type_enum(val syntax, val enums,
val obj = cobj(coerce(mem_t *, tft), ffi_type_s, &ffi_type_enum_ops);
cnum lowest = INT_PTR_MAX;
- cnum highest = INT_PTR_MIN;
+ cnum highest = INT_PTR_MIN - 1;
cnum cur = -1;
ucnum count = 0;
val iter;