[MacRuby] #967: Boolean pointer creation assertion
#967: Boolean pointer creation assertion -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- When trying to create a pointer to a boolean using this syntax: {{{ Pointer.new(:boolean) }}} MacRuby isn't happy: {{{ Assertion failed: (size > 0), function convert_type, file compiler.cpp, line 5808. Abort trap }}} However, using the alternative syntax: {{{ Pointer.new_with_type(:B) }}} just works fine. -- Ticket URL: <http://www.macruby.org/trac/ticket/967> MacRuby <http://macruby.org/>
#967: Boolean pointer creation assertion -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- Comment(by lsansonetti@…): So there are 2 problems here. First, :boolean isn't recognized as a shortcut to 'B' (we only support ruby-ffi types so far). Second, passing a type string that is not valid will make a crash. -- Ticket URL: <http://www.macruby.org/trac/ticket/967#comment:1> MacRuby <http://macruby.org/>
#967: Boolean pointer creation assertion -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.8 Comment: Should be fixed in r4821 and 4822. -- Ticket URL: <http://www.macruby.org/trac/ticket/967#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby