update sizes for emscripten, size_t is 32 bit on wasm

main
Brett 2024-04-30 02:58:36 -04:00
parent 5b1fe8a08a
commit 40bb9302ea
3 changed files with 4 additions and 4 deletions

View File

@ -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)

@ -1 +1 @@
Subproject commit 99715470eefa6d8192ab44f7355187848070031a
Subproject commit 96521c51be8921e919b19059317c53465bc63b39

View File

@ -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!");
}