Fix mac action
This commit is contained in:
2
.github/workflows/run-tests.yml
vendored
2
.github/workflows/run-tests.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
- run: sudo apt install g++
|
||||
- run: g++ code/build_main.cpp -o bld && ./bld
|
||||
run-and-compile-mac:
|
||||
runs-on: mac-latest
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: brew install llvm
|
||||
|
||||
@@ -5,5 +5,5 @@ mkdir build
|
||||
cd build
|
||||
cl -Fe:bld.exe ../code/build_main.cpp -WX -W3 -wd4200 -diagnostics:column -nologo -Zi -D_CRT_SECURE_NO_WARNINGS /MD
|
||||
cd ..
|
||||
build\bld.exe asd=Memes
|
||||
build\bld.exe
|
||||
|
||||
|
||||
@@ -123,6 +123,7 @@ struct Table {
|
||||
}
|
||||
|
||||
Entry *get_table_entry(uint64_t key) {
|
||||
if (len == 0) return 0;
|
||||
uint64_t hash = TABLE_HASH_BYTES(&key, sizeof(key));
|
||||
if (hash == 0) hash += 1;
|
||||
uint64_t index = TABLE__WRAP_AROUND_POWER_OF_2(hash, cap);
|
||||
|
||||
Reference in New Issue
Block a user