Commit 8347b35
committed
Fix Core.toFloat32Array, Buffer version
According to NodeJS docs Buffer.buffer is not guaranteed to correspond
exactly to the original Buffer. [1]
The previous implementation could use buffer garbage while converting
bytes to floats.
[1] https://nodejs.org/api/buffer.html#bufbuffer1 parent e080e12 commit 8347b35
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
| 1298 | + | |
| 1299 | + | |
1299 | 1300 | | |
1300 | 1301 | | |
1301 | 1302 | | |
| |||
0 commit comments