aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorJohan Manuel2016-07-26 15:05:30 +0200
committerJohan Manuel2016-08-13 13:21:35 +0200
commita4674bda47ddeed7cc929bafdcd89b6bd156ee30 (patch)
tree4b55115407317137c96f81012f20d2793c253379 /modules/gdscript/gd_tokenizer.cpp
parent67b29e3b9ea9630b84477a4bdc71b41b25191872 (diff)
downloadgodot-a4674bda47ddeed7cc929bafdcd89b6bd156ee30.tar.gz
godot-a4674bda47ddeed7cc929bafdcd89b6bd156ee30.tar.zst
godot-a4674bda47ddeed7cc929bafdcd89b6bd156ee30.zip
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r--modules/gdscript/gd_tokenizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp
index 93863c4eb..ccdeef19c 100644
--- a/modules/gdscript/gd_tokenizer.cpp
+++ b/modules/gdscript/gd_tokenizer.cpp
@@ -1322,7 +1322,7 @@ StringName GDTokenizerBuffer::get_token_identifier(int p_offset) const{
ERR_FAIL_INDEX_V(offset,tokens.size(),StringName());
uint32_t identifier = tokens[offset]>>TOKEN_BITS;
- ERR_FAIL_INDEX_V(identifier,identifiers.size(),StringName());
+ ERR_FAIL_INDEX_V(identifier,(uint32_t)identifiers.size(),StringName());
return identifiers[identifier];
}
@@ -1381,7 +1381,7 @@ const Variant& GDTokenizerBuffer::get_token_constant(int p_offset) const{
int offset = token+p_offset;
ERR_FAIL_INDEX_V(offset,tokens.size(),nil);
uint32_t constant = tokens[offset]>>TOKEN_BITS;
- ERR_FAIL_INDEX_V(constant,constants.size(),nil);
+ ERR_FAIL_INDEX_V(constant,(uint32_t)constants.size(),nil);
return constants[constant];
}