diff options
author | Alon Zakai <azakai@google.com> | 2019-04-26 16:59:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 16:59:41 -0700 |
commit | db9124f1de0478dcac525009b6f1589b44a7edd8 (patch) | |
tree | fa26395a0f6cca53cf5cb6e10189f989c5bfa847 /src/support/alloc.h | |
parent | 87636dccd404a340d75acb1d96301581343f29ca (diff) | |
download | binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.tar.gz binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.tar.bz2 binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.zip |
Apply format changes from #2048 (#2059)
Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048
Diffstat (limited to 'src/support/alloc.h')
-rw-r--r-- | src/support/alloc.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/support/alloc.h b/src/support/alloc.h index 075896694..d85cbb0f7 100644 --- a/src/support/alloc.h +++ b/src/support/alloc.h @@ -35,10 +35,11 @@ inline void* aligned_malloc(size_t align, size_t size) { #if defined(WIN32) || defined(_WIN32) _set_errno(0); void* ret = _aligned_malloc(size, align); - if (errno == ENOMEM) ret = nullptr; + if (errno == ENOMEM) + ret = nullptr; return ret; #elif defined(__APPLE__) - void *ptr; + void* ptr; int result = posix_memalign(&ptr, align, size); return result == 0 ? ptr : nullptr; #else @@ -56,4 +57,4 @@ inline void aligned_free(void* ptr) { } // namespace wasm -#endif // wasm_support_alloc_h +#endif // wasm_support_alloc_h |