File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,11 @@ static void No_Nones_Or_Logic(REBVAL *arg) {
155
155
for (; index >= start && index < end ; index += skip ) {
156
156
value = BLK_SKIP (series , index );
157
157
if (VAL_TYPE (value ) == VAL_TYPE (target )) {
158
- if (IS_DATATYPE (target ) && VAL_DATATYPE (value ) == VAL_DATATYPE (target )) return index ;
159
- else if EQUAL_TYPESET (value , target )
158
+ if (IS_DATATYPE (target )) {
159
+ if (VAL_DATATYPE (value ) == VAL_DATATYPE (target ))
160
+ return index ;
161
+ }
162
+ else if (EQUAL_TYPESET (value , target ))
160
163
return index ;
161
164
}
162
165
if (flags & AM_FIND_MATCH ) break ;
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ Rebol [
38
38
--assert ["aha" ] = find reduce [integer! "aha" ] series!
39
39
--assert not none? find any-string! ref!
40
40
41
+ --assert 1 = index? find [#{ 00 } #[string!] #[binary!]] #[binary!]
42
+ --assert 3 = index? find/only [#{ 00 } #[string!] #[binary!]] #[binary!]
43
+
41
44
--assert 2 = index? find/only reduce ["" string! any-string! binary! ] string!
42
45
--assert 3 = index? find/only reduce ["" string! any-string! binary! ] any-string!
43
46
--assert 1 = index? find reduce ["" string! any-string! binary! ] any-string!
You can’t perform that action at this time.
0 commit comments