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
long[] f(byte[] a)
{
return cast(long[])a[0..a.length/8*8];
}
Here the compiler can see that the array length is multiple of 8 and simply divide the length by 8 for the cast.
The text was updated successfully, but these errors were encountered:
anonymous4 reported this on 2018-10-18T09:47:47Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=19310
Description
The text was updated successfully, but these errors were encountered: