Commit 9142138b
9142138b6caaMerged
Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 3 files · +2 added · ~1 modified
Description
Merge pull request #1091 from neidiom/fix/array-first-last-empty-nil
Fix Array#first/#last on empty int_array returning SP_INT_NIL instead…
Details
- Commit
- 9142138b6caa
- Parent
- 2067c0f3fe61
- Merge parent
- 594d6f144320
spinel_analyze.rbmodifiedView file
@@ -5714,6 +5714,9 @@
57145714
if rt == "poly_array"57155715
return "poly"57165716
end5717+
if rt == "int_array"5718+
return "int?"5719+
end57175720
end57185721
return "int"57195722
endtest/array_first_last_empty.rbaddedView file
Loading diff…
test/array_first_last_empty.rb.expectedaddedView file
Loading diff…