Commit 84473144 authored by Heinz N. Gies's avatar Heinz N. Gies Committed by GitHub

Merge pull request #16 from davecromberge/msgpack-fix

MsgPack: Advance index pointer by appropriate amount for zero (as double)
parents e7ac3648 f98f4b14
......@@ -212,6 +212,7 @@ function decode() { // @return Mix:
exp = (rv >> 20) & 0x7ff; // 11bits
frac = rv & 0xfffff; // 52bits - 32bits (high word)
if (!rv || rv === 0x80000000) { // 0.0 or -0.0
readByte(that, 4);
return 0;
}
if (exp === 0x7ff) { // NaN or Infinity
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment