Skip to content

Commit

Permalink
Still working through MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hossein.moein@kensho.com committed May 7, 2019
1 parent 3e82585 commit ddbab48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/DataFrame_get.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ get_row(size_type row_num, const std::array<const char *, N> col_names) const {
if (row_num >= indices_.size()) {
char buffer [512];

#ifdef _WIN32
sprintf(buffer, "DataFrame::get_row(): ERROR: There aren't %zu rows",
#else
sprintf(buffer, "DataFrame::get_row(): ERROR: There aren't %lu rows",
#endif // _WIN32
row_num);
throw BadRange(buffer);
}
Expand Down
2 changes: 1 addition & 1 deletion include/DataFrame_read.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _col_vector_push_back_(V &vec,
if (c == '\n') break;
file.unget();
_get_token_from_file_(file, ',', value);
vec.push_back(converter(value));
vec.push_back(static_cast<T>(converter(value)));
}
}

Expand Down

0 comments on commit ddbab48

Please sign in to comment.