-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <i@uwucocoa.moe>
- Loading branch information
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters