Skip to content

Commit 7bb9476

Browse files
committed
Use int64_t for version variables in network.c
Replaces sqlite3_int64 with int64_t for new_db_version and new_seq variables to standardize integer type usage and improve portability. Was giving a compile error on linux musl
1 parent d721843 commit 7bb9476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ int cloudsync_network_send_changes_internal (sqlite3_context *context, int argc,
713713
// retrieve payload
714714
char *blob = NULL;
715715
int blob_size = 0, db_version = 0, seq = 0;
716-
sqlite3_int64 new_db_version = 0, new_seq = 0;
716+
int64_t new_db_version = 0, new_seq = 0;
717717
int rc = cloudsync_payload_get(data, &blob, &blob_size, &db_version, &seq, &new_db_version, &new_seq);
718718
if (rc != SQLITE_OK) {
719719
if (db_version < 0) sqlite3_result_error(context, "Unable to retrieve db_version.", -1);

0 commit comments

Comments
 (0)