Skip to content

Commit 9715d12

Browse files
committed
FIX: code simplified
1 parent aa227fc commit 9715d12

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/core/t-vector.c

+1-7
Original file line numberDiff line numberDiff line change
@@ -446,13 +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-
switch (bits) {
450-
case 8: bits = 0; break;
451-
case 16: bits = 1; break;
452-
case 32: bits = 2; break;
453-
case 64: bits = 3; break;
454-
}
455-
ser->size = (dims << 8) | (type << 3) | (sign << 2) | bits;
449+
ser->size = (dims << 8) | (type << 3) | (sign << 2) | (bits >> 4);
456450

457451
return ser;
458452
}

0 commit comments

Comments
 (0)