<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">Hi,&nbsp;<div class="">I'm trying to get the Alien ObjectiveC bridge to work, and I'm having a problem (right now no cog, just cocoa vm 5.7 with "regular" alien, NewspeakI32ABIPlugin), and I'm having a problem on sending a message with this form:&nbsp;</div><div class=""><br class=""></div><div class="">someAlien</div><div class=""><span style="white-space:pre" class="Apple-tab-span">        </span>primFFICallResult: resultAlien</div><div class=""><span style="white-space:pre" class="Apple-tab-span">        </span>withArguments: {anAlien. aLargePositiveInteger}</div><div class=""><br class=""></div><div class="">so... it is answering primitiveFail (code 3), because the third argument is bad taken when converting... the primitive does this path:&nbsp;</div><div class=""><br class=""></div><div class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(41, 90, 94); " class="">callIA32IntegralReturn,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(41, 90, 94); " class="">...</div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(41, 90, 94); " class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(123, 28, 175); "><span style="color: #c800a7">long</span><span style="color: #000000"> v = </span><span style="color: #448388">interpreterProxy</span><span style="color: #000000">-&gt;</span>signed32BitValueOf<span style="color: #000000">(arg);</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(123, 28, 175); "><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">...</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(123, 28, 175); "><span style="color: #000000"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">        </span>value = (((<span style="color: #295a5e">byteAt</span>((oop + (BASE_HEADER_SIZE)) + <span style="color: #4100e0">0</span>)) + ((<span style="color: #295a5e">byteAt</span>((oop + (BASE_HEADER_SIZE)) + <span style="color: #4100e0">1</span>)) &lt;&lt; <span style="color: #4100e0">8</span>)) + ((<span style="color: #295a5e">byteAt</span>((oop + (BASE_HEADER_SIZE)) + <span style="color: #4100e0">2</span>)) &lt;&lt; <span style="color: #4100e0">16</span>)) + ((<span style="color: #295a5e">byteAt</span>((oop + (BASE_HEADER_SIZE)) + <span style="color: #4100e0">3</span>)) &lt;&lt; <span style="color: #4100e0">24</span>);</div><div><br></div></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">value here is negative, and of course, it throws an error.&nbsp;</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "><br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">So... anybody has a clue of whats wrong? I know the number is actually a LargePositiveInteger, so it should be ok, and pass... so any idea?</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "><br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">Cheers,</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">Esteban</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "><br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "><br></span></div></span></div></div><div class=""><br class=""></div></body></html>