Skip to content

Commit

Permalink
Fixed linux bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RealNeGate committed Jan 5, 2023
1 parent bfa2762 commit edc1c09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
make
make -j
timeout-minutes: 10
build_linux:
runs-on: ubuntu-latest
Expand All @@ -31,5 +31,5 @@ jobs:
run: git submodule update --init --recursive

- name: Build TB
run: make
run: make -j
timeout-minutes: 10
2 changes: 1 addition & 1 deletion src/tb/tb_jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static void* tb_jitheap_alloc_region(TB_JITHeap* c, size_t s, TB_MemProtect prot
size_t k = bits ? tb_ffs64(~bits) - 1 : 0;
if (k + block_count >= 64) {
// goes across uint64 chunks
__debugbreak();
tb_todo();
} else {
uint64_t mask = ((1u << block_count) - 1) << k;
if ((bits & mask) == 0) {
Expand Down

0 comments on commit edc1c09

Please sign in to comment.