Skip to content

Commit

Permalink
fix segfault in pbrt in bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Feb 20, 2024
1 parent 0da4af9 commit 292165b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CAMLprim value caml_pbrt_varint_byte(value _str, value _idx, value _i) {
CAMLparam3(_str, _idx, _i);
char *str = Bytes_val(_str);
int idx = Int_val(_idx);
int64_t i = Int64_val(_idx);
int64_t i = Int64_val(_i);
pbrt_varint(str + idx, i);
CAMLreturn(Val_unit);
}

0 comments on commit 292165b

Please sign in to comment.