DEADSOFTWARE

fix segfault on 64bit systems
[flatwaifu.git] / src / miscc.c
index b7058172d4dd025e4af6de4efbbb1ee0949c3a71..3479689db3e6481c86bb0469a6748147162b019e 100644 (file)
@@ -597,7 +597,7 @@ int Z_moveobj(obj_t *p) {
 void Z_splash(obj_t *p,int n) {
   Z_sound(bulsnd[0],128);
   DOT_water(p->x,p->y-p->h/2,p->xv+p->vx,p->yv+p->vy,n,
-       (int)walp[wfront]-1);
+       (intptr_t)walp[wfront]-1);
 }
 
 void Z_calc_time(dword t,word *h,word *m,word *s)
@@ -652,4 +652,4 @@ int32_t int2host (int32_t x) {
 #else
   return x;
 #endif
-}
\ No newline at end of file
+}