We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44abaa8 commit 5b4b391Copy full SHA for 5b4b391
table.cpp
@@ -459,7 +459,7 @@ void table_t::escape_type(const string &value, ColumnType flags)
459
// For integers we take the first number, or the average if it's a-b
460
long long from, to;
461
// limit number of digits parsed to avoid undefined behaviour in sscanf
462
- int items = sscanf(value.c_str(), "%18Ld-%18Ld", &from, &to);
+ int items = sscanf(value.c_str(), "%18lld-%18lld", &from, &to);
463
if (items == 1 && from <= std::numeric_limits<int32_t>::max() &&
464
from >= std::numeric_limits<int32_t>::min()) {
465
m_copy.add_column(from);
0 commit comments