• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

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

mrubyを超漢字で動作させる


Commit MetaInfo

修订版f086dbd53696d6d0f460c3e8b8d4c90c9dba949e (tree)
时间2012-04-21 00:58:19
作者Yukihiro "Matz" Matsumoto <matz@ruby...>
CommiterYukihiro "Matz" Matsumoto

Log Message

Merge pull request #25 from pbhogan/remove-unnecessary-check

Remove unnecessary check for size_t < 0

更改概述

差异

--- a/src/array.c
+++ b/src/array.c
@@ -35,9 +35,6 @@ mrb_ary_new_capa(mrb_state *mrb, size_t capa)
3535 {
3636 struct RArray *a;
3737
38- if (capa < 0) {
39- mrb_raise(mrb, E_ARGUMENT_ERROR, "negative ary size (or size too big)");
40- }
4138 #ifdef LONG_MAX
4239 if (capa > ARY_MAX_SIZE) {
4340 mrb_raise(mrb, E_ARGUMENT_ERROR, "ary size too big");