Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 52ef35b

Browse files
[[ Bug 20259 ]] Cast to int64_t rather than long to support all required platforms
1 parent dc3dabe commit 52ef35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

revdb/src/sqlite_connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ bool queryCallback(void *p_context, int p_placeholder, DBBuffer& p_output)
439439
else
440440
{
441441
// According to documentation in sqlitedecode.cpp, this is the required size of output buffer
442-
t_escaped_string = malloc(2 + (257 * (long)t_parameter_value . length) / 254);
442+
t_escaped_string = malloc(2 + (257 * (int64_t)t_parameter_value . length) / 254);
443443
t_escaped_string_length = sqlite_encode_binary((const unsigned char *)t_parameter_value . sptr, t_parameter_value . length, (unsigned char *)t_escaped_string);
444444
}
445445
}

0 commit comments

Comments
 (0)