-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Length is set to 1 but size is three #13
Comments
I can't reproduce:
|
Tried it at home and got So I guess there is something wrong with my setup at work. |
Why is yours 0 but I get a lot of garbage?... |
What version of Node are you using? Buffer zero-fills by default now IIRC (I'm using latest 6.x version). |
v6.3.0 |
Well we're using different versions of |
Actually nvm, I guess they're not zero-filled by default at this point (I'm on v6.6.0):
So the fact that you got a random number is just a coincidence. |
I've got the latest from npm, do I need to add @latest to it?... |
I create a ArrayType('float') then instantiate it with size of 1, when I debug it it has three positions but the length is set to 1.
This results in when I run
.toArray
on it I only get one back. This might sound correct but for some reason the value I wan't is at idx three and does not get returned.the above results in:
Which does not make sense.
I am using electron, if that matters.
The text was updated successfully, but these errors were encountered: