Fix some more obscure warnings

This commit is contained in:
Jason Turner
2009-10-06 02:26:47 +00:00
parent a5b2ec3006
commit edd274ccce
6 changed files with 21 additions and 26 deletions

View File

@@ -30,6 +30,9 @@ namespace chaiscript
singleline_comment = "//";
}
ChaiScript_Parser(const ChaiScript_Parser &); // explicitly unimplemented copy constructor
ChaiScript_Parser &operator=(const ChaiScript_Parser &); // explicitly unimplemented assignment operator
/**
* Prints the parsed tokens as a tree
*/
@@ -68,7 +71,7 @@ namespace chaiscript
*/
void build_match(Token_Type::Type match_type, int match_start) {
//so we want to take everything to the right of this and make them children
if (match_start != (int)match_stack.size()) {
if (match_start != int(match_stack.size())) {
TokenPtr t(new Token("", match_type, filename, match_stack[match_start]->start.line, match_stack[match_start]->start.column, line, col));
t->children.assign(match_stack.begin() + (match_start), match_stack.end());
match_stack.erase(match_stack.begin() + (match_start), match_stack.end());