• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

Revisionc7fad5aa33f77d1869d9b879c9f8aeb5e688d64c (tree)
Time2015-08-12 10:20:55
Authorgo.kikuta <go.kikuta@akts...>
Commitergo.kikuta

Log Message

Remove duplicated RARRAY_LEN check

Change Summary

Incremental Difference

--- a/src/array.c
+++ b/src/array.c
@@ -19,7 +19,6 @@
1919 static inline mrb_value
2020 ary_elt(mrb_value ary, mrb_int offset)
2121 {
22- if (RARRAY_LEN(ary) == 0) return mrb_nil_value();
2322 if (offset < 0 || RARRAY_LEN(ary) <= offset) {
2423 return mrb_nil_value();
2524 }