Adjust for Ruby-2.4 with unified Integers
Lars Kanis
7 years ago
714 | 714 |
$2 = RSTRING_LEN($input);
|
715 | 715 |
}
|
716 | 716 |
|
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
|
718 | 718 |
%typemap(in) (const FXchar* dashpattern, FXuint dashlength) {
|
719 | 719 |
Check_Type($input, T_ARRAY);
|
720 | 720 |
$1 = new FXchar[RARRAY_LEN($input)];
|
|
762 | 762 |
*/
|
763 | 763 |
|
764 | 764 |
%typemap(in) FXWindow* TOOLBAR_DOCK_AFTER {
|
765 | |
if (TYPE($input) == T_FIXNUM) {
|
|
765 |
if (TYPE($input) == T_FIXNUM || TYPE($input) == T_BIGNUM)) {
|
766 | 766 |
$1 = reinterpret_cast<FXWindow *>(static_cast<long>(NUM2INT($input)));
|
767 | 767 |
} else {
|
768 | 768 |
SWIG_ConvertPtr($input, (void **) &$1, SWIGTYPE_p_FXWindow, 1);
|
25 | 25 |
|
26 | 26 |
def testStyle
|
27 | 27 |
assert(@button.buttonStyle)
|
28 | |
assert_instance_of(Fixnum, @button.buttonStyle)
|
|
28 |
assert_kind_of(Integer, @button.buttonStyle)
|
29 | 29 |
|
30 | 30 |
@button.buttonStyle |= BUTTON_AUTOGRAY
|
31 | 31 |
assert((@button.buttonStyle & BUTTON_AUTOGRAY) != 0)
|
|
55 | 55 |
|
56 | 56 |
def testState
|
57 | 57 |
assert(@button.state)
|
58 | |
assert_kind_of(Fixnum, @button.state)
|
|
58 |
assert_kind_of(Integer, @button.state)
|
59 | 59 |
|
60 | 60 |
@button.state = STATE_UP
|
61 | 61 |
assert_equal(STATE_UP, @button.state)
|
21 | 21 |
|
22 | 22 |
def test_getArrowDir
|
23 | 23 |
@header.appendItem("")
|
24 | |
assert_instance_of(Fixnum, @header.getArrowDir(0))
|
|
24 |
assert_kind_of(Integer, @header.getArrowDir(0))
|
25 | 25 |
end
|
26 | 26 |
|
27 | 27 |
def test_arrowUp?
|
11 | 11 |
|
12 | 12 |
def test_width_accessor
|
13 | 13 |
pos = @window.width
|
14 | |
assert_instance_of(Fixnum, pos)
|
|
14 |
assert_kind_of(Integer, pos)
|
15 | 15 |
@window.width = pos + 1
|
16 | 16 |
assert_equal(pos + 1, @window.width)
|
17 | 17 |
@window.width = pos + 2.7
|