From 2f6939a2cecc37691a1e474ff15a7801f9509cfb Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Wed, 30 Sep 2020 16:08:00 -0700 Subject: 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. --- src/wasm/wasm-binary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm/wasm-binary.cpp') 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(); } -- cgit v1.2.3