<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 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=""> int evtBuf[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };<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 struct sqInputEvent<br class="">{<br class=""> long type;<span class="Apple-tab-span" style="white-space:pre">                        </span>/* type of event; either one of EventTypeXXX */<br class=""> unsigned long timeStamp;<span class="Apple-tab-span" style="white-space:pre">        </span>/* time stamp */<br class=""> /* the longerpretation of the following fields depend on the type of the event */<br class=""> long unused1;<br class=""> long unused2;<br class=""> long unused3;<br class=""> long unused4;<br class=""> long unused5;<br class=""> long 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 SQ_HOST32 but crash when is 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>