Skip to content

Commit

Permalink
Use mrb_int instead of int as argument to mrb_hash_new_capa.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jun 19, 2017
1 parent b0f918d commit 667e788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mruby/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct RHash {
#define mrb_hash_ptr(v) ((struct RHash*)(mrb_ptr(v)))
#define mrb_hash_value(p) mrb_obj_value((void*)(p))

MRB_API mrb_value mrb_hash_new_capa(mrb_state*, int);
MRB_API mrb_value mrb_hash_new_capa(mrb_state*, mrb_int);

/*
* Initializes a new hash.
Expand Down
2 changes: 1 addition & 1 deletion src/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ mrb_gc_free_hash(mrb_state *mrb, struct RHash *hash)


MRB_API mrb_value
mrb_hash_new_capa(mrb_state *mrb, int capa)
mrb_hash_new_capa(mrb_state *mrb, mrb_int capa)
{
struct RHash *h;

Expand Down

0 comments on commit 667e788

Please sign in to comment.