You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noted Dart doesn't let you assign int to Int16. The following code gives a compiler error and politely asks that the int be cast to Int16:
int myInt =65508;
Int16 int16 = myInt;
So I suspect the assignment of an int to an element in an Int16List shouldn't be allowed either. I'm not sure if it's easy/possible to catch that though.
The text was updated successfully, but these errors were encountered:
Some of the Dart code I'm working with reads unsigned 16 bit data from a Wav file into an
IntList
... and I noticed something odd going on.The following test fails with
Expected: <65508> Actual: <-28>
:I noted Dart doesn't let you assign
int
toInt16
. The following code gives a compiler error and politely asks that theint
be cast toInt16
:So I suspect the assignment of an
int
to an element in anInt16List
shouldn't be allowed either. I'm not sure if it's easy/possible to catch that though.The text was updated successfully, but these errors were encountered: