aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author BrickPi <49528459+BrickPi@users.noreply.github.com>2023-02-27 16:54:45 +0100
committer GitHub <noreply@github.com>2023-02-27 16:54:45 +0100
commit44cd0ab1b8e6756f4fd90fed4e4e5558cb9554c4 (patch)
tree9a6091b234ec24272e83778b014d15c0291e9ad4
parent7abe229e0d1b16dd2a47554456682fd51cc49ced (diff)
Use uint64_t rather than size_t (#47)
Fix https://github.com/OpenVic2Project/OpenVic2/pull/3#issuecomment-1446571846
-rw-r--r--extension/src/Simulation.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/extension/src/Simulation.hpp b/extension/src/Simulation.hpp
index e16f34b..8959310 100644
--- a/extension/src/Simulation.hpp
+++ b/extension/src/Simulation.hpp
@@ -8,7 +8,7 @@
namespace OpenVic2 {
class Simulation : public godot::Object {
GDCLASS(Simulation, godot::Object)
- std::vector<size_t> exampleProvinces;
+ std::vector<uint64_t> exampleProvinces;
//BEGIN BOILERPLATE
static Simulation* _simulation;
@@ -35,12 +35,12 @@ namespace OpenVic2 {
//END BOILERPLATE
inline void conductSimulationStep() {
- for (size_t x = 0; x < exampleProvinces.size(); x++) {
+ for (uint64_t x = 0; x < exampleProvinces.size(); x++) {
exampleProvinces[x] += (x + 1);
}
}
- inline size_t queryProvinceSize(size_t provinceID) {
+ inline uint64_t queryProvinceSize(uint64_t provinceID) {
if (provinceID >= exampleProvinces.size()) {
return 0;
}
@@ -49,4 +49,4 @@ namespace OpenVic2 {
};
Simulation* Simulation::_simulation = nullptr;
-} \ No newline at end of file
+}