mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/curses/curses.c (curses_pair_number): suppress 64-to-32 warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7788d102c9
commit
d9b578f4a0
1 changed files with 1 additions and 1 deletions
|
@ -1239,7 +1239,7 @@ static VALUE
|
|||
curses_pair_number(VALUE obj, VALUE attrs)
|
||||
{
|
||||
curses_stdscr();
|
||||
return INT2FIX(PAIR_NUMBER(NUM2INT(attrs)));
|
||||
return INT2FIX(PAIR_NUMBER(NUM2LONG(attrs)));
|
||||
}
|
||||
#endif /* USE_COLOR */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue