From 40bb9302ead8bf42c6c2ff04b5efa5c80bfb7ed5 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 30 Apr 2024 02:58:36 -0400 Subject: [PATCH] update sizes for emscripten, size_t is 32 bit on wasm --- CMakeLists.txt | 2 +- lib/BLT-With-Graphics-Template | 2 +- src/main.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8ca201..4e5d209 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(graphs VERSION 0.0.17) +project(graphs VERSION 0.0.18) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/lib/BLT-With-Graphics-Template b/lib/BLT-With-Graphics-Template index 9971547..96521c5 160000 --- a/lib/BLT-With-Graphics-Template +++ b/lib/BLT-With-Graphics-Template @@ -1 +1 @@ -Subproject commit 99715470eefa6d8192ab44f7355187848070031a +Subproject commit 96521c51be8921e919b19059317c53465bc63b39 diff --git a/src/main.cpp b/src/main.cpp index 0682b54..44f30fe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -73,9 +73,9 @@ class node class edge { private: - blt::size_t i1, i2; + blt::u64 i1, i2; public: - edge(blt::size_t i1, blt::size_t i2): i1(i1), i2(i2) + edge(blt::u64 i1, blt::u64 i2): i1(i1), i2(i2) { BLT_ASSERT(i1 != i2 && "Indices cannot be equal!"); }