<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">In my test of the iOS VM it have a crash calling primitiveGetNextEvent, but only when is&nbsp;SQ_HOST64, I find the problem is because evtBuf is declared int:<div class=""><br class=""><div class=""><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">&nbsp; &nbsp;&nbsp;int&nbsp;evtBuf[8] = {&nbsp;0,&nbsp;0,&nbsp;0,&nbsp;0,&nbsp;0,&nbsp;0,&nbsp;0,&nbsp;0&nbsp;};<br class=""></span></font><br class=""></div><div style="margin: 0px;" class="">but pointed by sqInputEvent declared in sq.h as long:</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">/* generic input event */<br class="">typedef&nbsp;struct&nbsp;sqInputEvent<br class="">{<br class="">&nbsp;&nbsp;long&nbsp;type;<span class="Apple-tab-span" style="white-space:pre">                        </span>/* type of event; either one of EventTypeXXX */<br class="">&nbsp;&nbsp;unsigned&nbsp;long&nbsp;timeStamp;<span class="Apple-tab-span" style="white-space:pre">        </span>/* time stamp */<br class="">&nbsp;&nbsp;/* the longerpretation of the following fields depend on the type of the event */<br class="">&nbsp;&nbsp;long&nbsp;unused1;<br class="">&nbsp;&nbsp;long&nbsp;unused2;<br class="">&nbsp;&nbsp;long&nbsp;unused3;<br class="">&nbsp;&nbsp;long&nbsp;unused4;<br class="">&nbsp;&nbsp;long&nbsp;unused5;<br class="">&nbsp;&nbsp;long&nbsp;windowIndex;<span class="Apple-tab-span" style="white-space:pre">                </span>/* SmallInteger used in image to identify a host window structure */<br class="">} sqInputEvent;<br class=""><br class=""></div><div class="">for some reason this works when is&nbsp;SQ_HOST32 but crash when is&nbsp;SQ_HOST64, when I change int to long all works OK.</div></div><div class=""><br class=""></div><div class="">This is in interp.c who is generated by VMMaker:</div><div class=""><br class=""></div><div class="">/* Smalltalk from Squeak4.5 with VMMaker 4.13.12 translated as C source on 28 March 2015 8:15:47 pm */<br class=""><br class=""></div><div class="">I think one of the declaration needs to be changed.</div></div></body></html>