Converted the old style casts to c++ style casts.

This commit is contained in:
Mark de Wever 2009-04-02 18:23:06 +00:00
parent 2c41b606dd
commit 108f4c71f3

View File

@ -120,9 +120,9 @@ void parser::operator()(std::string* error_log)
parse_variable();
break;
default:
if ((unsigned char)tok_->current_token().value[0] == 0xEF &&
(unsigned char)tok_->next_token().value[0] == 0xBB &&
(unsigned char)tok_->next_token().value[0] == 0xBF)
if (static_cast<unsigned char>(tok_->current_token().value[0]) == 0xEF &&
static_cast<unsigned char>(tok_->next_token().value[0]) == 0xBB &&
static_cast<unsigned char>(tok_->next_token().value[0]) == 0xBF)
{
ERR_CF << "Skipping over a utf8 BOM\n";
} else {