From 108f4c71f39282dd798180b406441e862e01e0c4 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Thu, 2 Apr 2009 18:23:06 +0000 Subject: [PATCH] Converted the old style casts to c++ style casts. --- src/serialization/parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/serialization/parser.cpp b/src/serialization/parser.cpp index 47e83ec4c90..1a39ddc75e6 100644 --- a/src/serialization/parser.cpp +++ b/src/serialization/parser.cpp @@ -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(tok_->current_token().value[0]) == 0xEF && + static_cast(tok_->next_token().value[0]) == 0xBB && + static_cast(tok_->next_token().value[0]) == 0xBF) { ERR_CF << "Skipping over a utf8 BOM\n"; } else {