Skip to content

Commit

Permalink
FIX: code simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Dec 24, 2023
1 parent aa227fc commit 9715d12
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/core/t-vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,7 @@ void Set_Vector_Row(REBSER *ser, REBVAL *blk)
ser->tail = len; // !!! another way to do it?

// Store info about the vector (could be moved to flags if necessary):
switch (bits) {
case 8: bits = 0; break;
case 16: bits = 1; break;
case 32: bits = 2; break;
case 64: bits = 3; break;
}
ser->size = (dims << 8) | (type << 3) | (sign << 2) | bits;
ser->size = (dims << 8) | (type << 3) | (sign << 2) | (bits >> 4);

return ser;
}
Expand Down

0 comments on commit 9715d12

Please sign in to comment.