aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-02 15:43:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-02 15:44:01 -0800
commit80200fb5de158f265b76bcf4f99d2c7769e27b12 (patch)
tree38b6d5d9ffdd6840da1a17411299824f55ead508 /src
parent214fbe8e092b88573fcb3cadec886127ec87d701 (diff)
fix memset bug
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 7f177441..83d135ee 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4314,7 +4314,7 @@ LibraryManager.library = {
ptr = ptr|0; value = value|0; num = num|0;
var stop = 0, value4 = 0, stop4 = 0, unaligned = 0;
stop = (ptr + num)|0;
- if (num|0 >= {{{ SEEK_OPTIMAL_ALIGN_MIN }}}) {
+ if ((num|0) >= {{{ SEEK_OPTIMAL_ALIGN_MIN }}}) {
// This is unaligned, but quite large, so work hard to get to aligned settings
unaligned = ptr & 3;
value4 = value | (value << 8) | (value << 16) | (value << 24);