-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: compilation on homebrew clang 16.06 (#1937)
Unfortunately size_t seems to be weird on newer clang - it is defined as unsigned long and incompatible with both our `uint32_t` and `uint64_t` types suddenly! There's a few ways to resolve this, but overall I don't think `size_t` is needed. It's weird for us to rely too much on the native word size. I think we should use `uint32_t` if makes sense (sizes that will be under 4 billion etc and we want to use the fastest type in WASM) and uint64_t if it makes sense (if we need the size, want an efficient math type for bigint multiplies etc).
- Loading branch information
Showing
2 changed files
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters