diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-18 22:54:59 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-18 22:54:59 +0900 |
| commit | 8fbc4bef552bfdaeb23c194af4af23e16f077947 (patch) | |
| tree | 82f6eb23b882add6c6815930deda9125f03e4ae1 /src/array.c | |
| parent | f1767fd079a74ca5c5ec77f101816b7d657509d8 (diff) | |
| download | mruby-8fbc4bef552bfdaeb23c194af4af23e16f077947.tar.gz mruby-8fbc4bef552bfdaeb23c194af4af23e16f077947.zip | |
Reduce signed/unsigned comparison warnings; ref #3785
Diffstat (limited to 'src/array.c')
| -rw-r--r-- | src/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.c b/src/array.c index c6cca3816..0360f2177 100644 --- a/src/array.c +++ b/src/array.c @@ -14,7 +14,7 @@ #define ARY_DEFAULT_LEN 4 #define ARY_SHRINK_RATIO 5 /* must be larger than 2 */ #define ARY_C_MAX_SIZE (SIZE_MAX / sizeof(mrb_value)) -#define ARY_MAX_SIZE ((ARY_C_MAX_SIZE < (size_t)MRB_INT_MAX) ? (mrb_int)ARY_C_MAX_SIZE : MRB_INT_MAX-1) +#define ARY_MAX_SIZE ((mrb_int)((ARY_C_MAX_SIZE < (size_t)MRB_INT_MAX) ? ARY_C_MAX_SIZE : MRB_INT_MAX-1)) static struct RArray* ary_new_capa(mrb_state *mrb, mrb_int capa) |
