diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-09-30 16:08:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 16:08:00 -0700 |
commit | 2f6939a2cecc37691a1e474ff15a7801f9509cfb (patch) | |
tree | d994f14cb68e95d675d0ac3943c8087c77129b3e /src/wasm/wasm-binary.cpp | |
parent | b91603f65c45139ad49dfa257749d100117b763d (diff) | |
download | binaryen-2f6939a2cecc37691a1e474ff15a7801f9509cfb.tar.gz binaryen-2f6939a2cecc37691a1e474ff15a7801f9509cfb.tar.bz2 binaryen-2f6939a2cecc37691a1e474ff15a7801f9509cfb.zip |
Clean up support/bits.h (#3177)
Use overloads instead of templates where applicable and change function names
from PascalCase to camelCase. Also puts the functions in the Bits namespace to
avoid naming conflicts.
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index 38a85bd1b..8ebddc8e8 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -3145,7 +3145,7 @@ void WasmBinaryBuilder::readMemoryAccess(Address& alignment, Address& offset) { if (rawAlignment > 4) { throwError("Alignment must be of a reasonable size"); } - alignment = Pow2(rawAlignment); + alignment = Bits::pow2(rawAlignment); offset = getU32LEB(); } |