Skip to content

Commit e81fb8c

Browse files
committed
FIX: code refactoring
related to: metaeducation/rebol-issues#2400
1 parent 62af92f commit e81fb8c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/t-vector.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -586,15 +586,15 @@ void Set_Vector_Row(REBSER *ser, REBVAL *blk)
586586
/*
587587
***********************************************************************/
588588
{
589+
REBINT num;
590+
589591
if (mode == 3)
590592
return VAL_SERIES(a) == VAL_SERIES(b) && VAL_INDEX(a) == VAL_INDEX(b);
591593

592-
REBINT n = Compare_Vector(a, b); // needs to be expanded for equality
593-
if (mode >= 0) {
594-
return n == 0;
595-
}
596-
if (mode == -1) return n >= 0;
597-
return n > 0;
594+
num = Compare_Vector(a, b);
595+
if (mode >= 0) return (num == 0);
596+
if (mode == -1) return (num >= 0);
597+
return (num > 0);
598598
}
599599

600600

0 commit comments

Comments
 (0)