diff --git a/Table/src/lib/AsciiReaderHelper.cpp b/Table/src/lib/AsciiReaderHelper.cpp
index 4d3e441..e1ccc6f 100644
--- a/Table/src/lib/AsciiReaderHelper.cpp
+++ b/Table/src/lib/AsciiReaderHelper.cpp
@@ -407,7 +407,7 @@ std::pair<std::type_index, std::size_t> guessColumnType(const std::string& token
auto it1 = token.begin(), it2 = it1;
if (qi::parse(it1, token.end(), qi::long_, l) && it1 == token.end()) {
- return {typeid(long), 0};
+ return {typeid(int64_t), 0};
}
if (qi::parse(it2, token.end(), qi::double_, d) && it2 == token.end()) {
return {typeid(double), 0};
diff --git a/Table/tests/src/AsciiReader_test.cpp b/Table/tests/src/AsciiReader_test.cpp
index a932511..50f4696 100644
--- a/Table/tests/src/AsciiReader_test.cpp
+++ b/Table/tests/src/AsciiReader_test.cpp
@@ -482,11 +482,11 @@ BOOST_AUTO_TEST_CASE(autoTypeDetection_test) {
auto column_info = table.getColumnInfo();
// Then
- BOOST_CHECK(column_info->getDescription(0).type == typeid(long));
+ BOOST_CHECK(column_info->getDescription(0).type == typeid(int64_t));
BOOST_CHECK(column_info->getDescription(1).type == typeid(std::string));
BOOST_CHECK(column_info->getDescription(2).type == typeid(double));
BOOST_CHECK(column_info->getDescription(3).type == typeid(std::string));
- BOOST_CHECK(column_info->getDescription(4).type == typeid(long));
+ BOOST_CHECK(column_info->getDescription(4).type == typeid(int64_t));
}
//-----------------------------------------------------------------------------