diff options
author | Chad Austin <chad@imvu.com> | 2014-03-31 12:53:15 -0700 |
---|---|---|
committer | Chad Austin <chad@imvu.com> | 2014-03-31 12:53:15 -0700 |
commit | ffed52a8ac686a54bfda83d722673c11b8e7093e (patch) | |
tree | 9965ff4ae70083c82465cb97a4efa994c773de2f /system | |
parent | 3c5aa9b566c8a824d6ac920600d10bf4085bd42e (diff) |
Remove 'vararg' from names of functions, per code review. Don't expand floats to doubles in argument packs.
Diffstat (limited to 'system')
-rw-r--r-- | system/include/emscripten/val.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/include/emscripten/val.h b/system/include/emscripten/val.h index e364727c..e217c959 100644 --- a/system/include/emscripten/val.h +++ b/system/include/emscripten/val.h @@ -145,8 +145,8 @@ namespace emscripten { union GenericWireType { union { - int i; unsigned u; + float f; const void* p; } w[2]; double d; @@ -155,7 +155,7 @@ namespace emscripten { static_assert(alignof(GenericWireType) == 8, "GenericWireType must be 8-byte-aligned"); inline void writeGenericWireType(GenericWireType*& cursor, float wt) { - cursor->d = wt; + cursor->w[0].f = wt; ++cursor; } |