aboutsummaryrefslogtreecommitdiff
path: root/core/vector.h
diff options
context:
space:
mode:
authoreska2017-01-31 03:46:30 +0100
committereska2017-02-01 10:21:04 +0100
commite06edc67c049c65c3952a8447e22717a0f492020 (patch)
treeca08d23b54fbb40fb609b44a58395eb72b3203fb /core/vector.h
parent7b059965e8df745c5b45b4ec6bfbdfe1a7397642 (diff)
downloadgodot-e06edc67c049c65c3952a8447e22717a0f492020.tar.gz
godot-e06edc67c049c65c3952a8447e22717a0f492020.tar.zst
godot-e06edc67c049c65c3952a8447e22717a0f492020.zip
Diffstat (limited to 'core/vector.h')
-rw-r--r--core/vector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vector.h b/core/vector.h
index 3119657cb..1cb3fee25 100644
--- a/core/vector.h
+++ b/core/vector.h
@@ -81,7 +81,7 @@ class Vector {
size_t p;
if (_mul_overflow(p_elements, sizeof(T), &o)) return false;
*out = nearest_power_of_2(o);
- if (_add_overflow(o, 32, &p)) return false; //no longer allocated here
+ if (_add_overflow(o, static_cast<size_t>(32), &p)) return false; //no longer allocated here
return true;
#else
// Speed is more important than correctness here, do the operations unchecked