Skip to content

Commit e31efb6

Browse files
committed
fix(windows/network): cast db_version to int64_t in endpoint formatting
1 parent ddcb824 commit e31efb6

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
@@ -794,7 +794,7 @@ int cloudsync_network_check_internal(sqlite3_context *context, int *pnrows) {
794794
// http://uuid.g5.sqlite.cloud/v1/cloudsync/{dbname}/{site_id}/{db_version}/{seq}/check
795795
// the data->check_endpoint stops after {site_id}, just need to append /{db_version}/{seq}/check
796796
char endpoint[2024];
797-
snprintf(endpoint, sizeof(endpoint), "%s/%" PRId64 "/%d/%s", data->check_endpoint, db_version, seq, CLOUDSYNC_ENDPOINT_CHECK);
797+
snprintf(endpoint, sizeof(endpoint), "%s/%" PRId64 "/%d/%s", data->check_endpoint, (int64_t)db_version, seq, CLOUDSYNC_ENDPOINT_CHECK);
798798

799799
NETWORK_RESULT result = network_receive_buffer(data, endpoint, data->authentication, true, true, NULL, CLOUDSYNC_HEADER_SQLITECLOUD);
800800
int rc = SQLITE_OK;

0 commit comments

Comments
 (0)