1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 06:34:48 +00:00

Fix ifdef in capi.c for janet_getuinteger64 and janet_getinteger64

This commit is contained in:
bakpakin 2022-09-20 15:42:20 -05:00
parent 43c47ac44c
commit 49f9e4eddf

View File

@ -260,7 +260,7 @@ int32_t janet_getinteger(const Janet *argv, int32_t n) {
} }
int64_t janet_getinteger64(const Janet *argv, int32_t n) { int64_t janet_getinteger64(const Janet *argv, int32_t n) {
#ifdef JANET_INTTYPES #ifdef JANET_INT_TYPES
return janet_unwrap_s64(argv[n]); return janet_unwrap_s64(argv[n]);
#else #else
Janet x = argv[n]; Janet x = argv[n];
@ -272,7 +272,7 @@ int64_t janet_getinteger64(const Janet *argv, int32_t n) {
} }
uint64_t janet_getuinteger64(const Janet *argv, int32_t n) { uint64_t janet_getuinteger64(const Janet *argv, int32_t n) {
#ifdef JANET_INTTYPES #ifdef JANET_INT_TYPES
return janet_unwrap_u64(argv[n]); return janet_unwrap_u64(argv[n]);
#else #else
Janet x = argv[n]; Janet x = argv[n];