Skip to content

Commit 238ecbc

Browse files
committed
FIX: regression when creating 64 bit vectors
resolves: Oldes/Rebol-issues#2590
1 parent ff565f7 commit 238ecbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/t-vector.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ void Set_Vector_Row(REBSER *ser, REBVAL *blk)
446446
ser->tail = len; // !!! another way to do it?
447447

448448
// Store info about the vector (could be moved to flags if necessary):
449-
ser->size = (dims << 8) | (type << 3) | (sign << 2) | (bits >> 4);
449+
ser->size = (dims << 8) | (type << 3) | (sign << 2) | (bits >> 4)-1; // bits are zero based value!
450450

451451
return ser;
452452
}

0 commit comments

Comments
 (0)