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 e1e40d4 commit 5cbb6f0Copy full SHA for 5cbb6f0
table.cpp
@@ -457,9 +457,9 @@ void table_t::escape_type(const string &value, ColumnType flags)
457
switch (flags) {
458
case COLUMN_TYPE_INT: {
459
// For integers we take the first number, or the average if it's a-b
460
- int64_t from, to;
+ 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(), "%18Ld-%18Ld", &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