You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updated configuration for armv7l-linux-gnueabihf (#302)
Long story short: `ErlNapiSInt64` defined in `erl_drv_nif.h` becomes signed
32-bit integer when cross-compiling for an `armv7l` target on an `x86_64` host.
The old but gold `printf` debugging:
case SQLITE_INTEGER: {
int64_t value = sqlite3_column_int64(statement, i);
sqlite_int64 v = value;
printf("sqlite3_column_int64: int64_t %lld\r\n", value);
printf("sqlite3_column_int64: sqlite_int64 %lld\r\n", v);
printf("sizeof(ErlNapiSInt64): %ld\r\n", sizeof(ErlNapiSInt64));
return enif_make_int64(env, v);
}
Output:
sqlite3_column_int64: int64_t 20221010123504
sqlite3_column_int64: sqlite_int64 20221010123504
sizeof(ErlNapiSInt64): 4
Signed-off-by: Cocoa <[email protected]>
0 commit comments