Skip to content

Commit 667e788

Browse files
committed
Use mrb_int instead of int as argument to mrb_hash_new_capa.
1 parent b0f918d commit 667e788

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/mruby/hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct RHash {
2424
#define mrb_hash_ptr(v) ((struct RHash*)(mrb_ptr(v)))
2525
#define mrb_hash_value(p) mrb_obj_value((void*)(p))
2626

27-
MRB_API mrb_value mrb_hash_new_capa(mrb_state*, int);
27+
MRB_API mrb_value mrb_hash_new_capa(mrb_state*, mrb_int);
2828

2929
/*
3030
* Initializes a new hash.

src/hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ mrb_gc_free_hash(mrb_state *mrb, struct RHash *hash)
140140

141141

142142
MRB_API mrb_value
143-
mrb_hash_new_capa(mrb_state *mrb, int capa)
143+
mrb_hash_new_capa(mrb_state *mrb, mrb_int capa)
144144
{
145145
struct RHash *h;
146146

0 commit comments

Comments
 (0)