Codebase list ruby-fxruby / e415ecf
Adjust for Ruby-2.4 with unified Integers Lars Kanis 7 years ago
4 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
714714 $2 = RSTRING_LEN($input);
715715 }
716716
717 // Extract a C array (dashpattern) and its length (dashlength) from a Ruby array of Fixnums
717 // Extract a C array (dashpattern) and its length (dashlength) from a Ruby array of Integers
718718 %typemap(in) (const FXchar* dashpattern, FXuint dashlength) {
719719 Check_Type($input, T_ARRAY);
720720 $1 = new FXchar[RARRAY_LEN($input)];
762762 */
763763
764764 %typemap(in) FXWindow* TOOLBAR_DOCK_AFTER {
765 if (TYPE($input) == T_FIXNUM) {
765 if (TYPE($input) == T_FIXNUM || TYPE($input) == T_BIGNUM)) {
766766 $1 = reinterpret_cast<FXWindow *>(static_cast<long>(NUM2INT($input)));
767767 } else {
768768 SWIG_ConvertPtr($input, (void **) &$1, SWIGTYPE_p_FXWindow, 1);
2525
2626 def testStyle
2727 assert(@button.buttonStyle)
28 assert_instance_of(Fixnum, @button.buttonStyle)
28 assert_kind_of(Integer, @button.buttonStyle)
2929
3030 @button.buttonStyle |= BUTTON_AUTOGRAY
3131 assert((@button.buttonStyle & BUTTON_AUTOGRAY) != 0)
5555
5656 def testState
5757 assert(@button.state)
58 assert_kind_of(Fixnum, @button.state)
58 assert_kind_of(Integer, @button.state)
5959
6060 @button.state = STATE_UP
6161 assert_equal(STATE_UP, @button.state)
2121
2222 def test_getArrowDir
2323 @header.appendItem("")
24 assert_instance_of(Fixnum, @header.getArrowDir(0))
24 assert_kind_of(Integer, @header.getArrowDir(0))
2525 end
2626
2727 def test_arrowUp?
1111
1212 def test_width_accessor
1313 pos = @window.width
14 assert_instance_of(Fixnum, pos)
14 assert_kind_of(Integer, pos)
1515 @window.width = pos + 1
1616 assert_equal(pos + 1, @window.width)
1717 @window.width = pos + 2.7