Skip to content

Commit 26219cb

Browse files
committed
Update basic_csv_parser.hpp
Fix Emscripten failure
1 parent 4dfba8e commit 26219cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/internal/basic_csv_parser.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,15 @@ namespace csv {
241241
const auto end = _source.tellg();
242242
_source.seekg(0, std::ios::beg);
243243

244-
source_size = end - start;
244+
source_size = static_cast<size_t>(end - start);
245245
}
246246

247247
// Read data into buffer
248248
size_t length = std::min(source_size - stream_pos, bytes);
249249
std::unique_ptr<char[]> buff(new char[length]);
250250
_source.seekg(stream_pos, std::ios::beg);
251251
_source.read(buff.get(), length);
252-
stream_pos = _source.tellg();
252+
stream_pos = static_cast<size_t>(_source.tellg());
253253
((std::string*)(this->data_ptr->_data.get()))->assign(buff.get(), length);
254254

255255
// Create string_view

0 commit comments

Comments
 (0)