All pastes #710229 Raw Edit

Someone

public ruby v1 · immutable
#710229 ·published 2007-09-25 10:47 UTC
rendered paste body
require 'Qt4'class Test < Qt::Widget  slots		"test_slot()"  signals	"test_signal(int)"  def initialize    super    @button = Qt::PushButton.new self    connect @button , SIGNAL("clicked()") , self , SLOT("test_slot()")  end  def test_slot    emit test_signal(23456253443720)  endendapp = Qt::Application.new ARGVt = Test.newt.showapp.exec__END__on an athlon 64 platform, running this app then clicking the button gives this error;amd64_int.rb:14:in `test_signal': integer 23456253443720 too big to convert to `int' (RangeError)        from amd64_int.rb:14:in `test_slot'        from /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:241:in `qt_metacall'        from /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:241:in `method_missing'        from /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:241:in `exec'