diff options
-rw-r--r-- | src/preamble.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/preamble.js b/src/preamble.js index 3238c99c..3e76e503 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -1076,8 +1076,10 @@ Math.imul = Math['imul']; #if PRECISE_F32 #if PRECISE_F32 == 1 -var froundBuffer = new Float32Array(1); -if (!Math['fround']) Math['fround'] = function(x) { froundBuffer[0] = x; return froundBuffer[0] }; +if (!Math['fround']) { + var froundBuffer = new Float32Array(1); + Math['fround'] = function(x) { froundBuffer[0] = x; return froundBuffer[0] }; +} #else // 2 if (!Math['fround']) Math['fround'] = function(x) { return x }; #endif |