Skip to content

Commit 37b0143

Browse files
committed
fix output of integrity check on big endian platforms
1 parent 2f8202b commit 37b0143

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/crypto_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ int sqlcipher_codec_ctx_integrity_check(codec_ctx *ctx, Parse *pParse, char *col
13291329
}
13301330

13311331
if(file_sz % ctx->page_sz != 0) {
1332-
result = sqlite3_mprintf("page %d has an invalid size of %d bytes", page, file_sz - ((file_sz / ctx->page_sz) * ctx->page_sz));
1332+
result = sqlite3_mprintf("page %d has an invalid size of %lld bytes", page, file_sz - ((file_sz / ctx->page_sz) * ctx->page_sz));
13331333
sqlite3VdbeAddOp4(v, OP_String8, 0, 1, 0, result, P4_DYNAMIC);
13341334
sqlite3VdbeAddOp2(v, OP_ResultRow, 1, 1);
13351335
}

0 commit comments

Comments
 (0)