From 609da796fb48d746f4672c00d2bd970834258b43 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 26 Feb 2012 17:18:39 +0100 Subject: [PATCH] Fix two 64-bit warnings Passing the engine number in a pointer variable to the callback needed a two-step cast. --- xboard.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xboard.c b/xboard.c index 167e8cf..024ea90 100644 --- a/xboard.c +++ b/xboard.c @@ -3905,7 +3905,7 @@ MenuBarSelect (Widget w, caddr_t addr, caddr_t index) static void MenuEngineSelect (Widget w, caddr_t addr, caddr_t index) { - RecentEngineEvent((int) addr); + RecentEngineEvent((int) (intptr_t) addr); } void @@ -3930,7 +3930,7 @@ AppendEnginesToMenu (Widget menu, char *list) entry = XtCreateManagedWidget("engine", smeBSBObjectClass, menu, args, j+1); XtAddCallback(entry, XtNcallback, (XtCallbackProc) MenuEngineSelect, - (caddr_t) i); + (caddr_t) (intptr_t) i); i++; *p = '\n'; list = p + 1; } } -- 1.7.0.4