Closed
Bug 445719
Opened 17 years ago
Closed 16 years ago
ByteArray float and double operations are busted
Categories
(Tamarin Graveyard :: Tracing Virtual Machine, defect)
Tracking
(Not tracked)
VERIFIED
WONTFIX
People
(Reporter: edwsmith, Unassigned)
Details
from Scott Peterson:
I found a couple of bugs that were causing Lua and Scimark trouble.
In ByteArray.cpp, the double and float variants of the _read/_write native functions were calling getData() instead of getData(offset). This may not be a huge deal but I noticed it before I found the real culprit. An assertion in getData() would have caught this had it not been commented out.
In ByteArray.as, readDouble and readFloat don't return anything! They both need a "return d" at the end.
| Reporter | ||
Comment 1•17 years ago
|
||
test case fodder
var ba:ByteArray = new ByteArray;
ba.writeDouble(123);
ba.position = 0;
ba.readDouble(); // returns NaN
ba.position = 0;
ba.writeFloat(123);
ba.position = 0;
ba.readFloat(); // returns NaN
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•