Added casts necessary for building under Visual Studio
This commit is contained in:
parent
49a90ef595
commit
013aefd9fd
2 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ void annotation_t::parse(std::istream& in)
|
|||
{
|
||||
do {
|
||||
istream_pos_type pos = in.tellg();
|
||||
if (pos == -1)
|
||||
if (static_cast<int>(pos) < 0)
|
||||
return;
|
||||
|
||||
char buf[256];
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags,
|
|||
|
||||
assert(in.good());
|
||||
assert(! in.eof());
|
||||
assert(in.tellg() != -1);
|
||||
assert(static_cast<int>(in.tellg()) != -1);
|
||||
|
||||
// When in relaxed parsing mode, we want to migrate commodity flags
|
||||
// so that any precision specified by the user updates the current
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue