projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
64ff3ec
)
Fix two 64-bit warnings
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 26 Feb 2012 16:18:39 +0000 (17:18 +0100)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 26 Feb 2012 16:18:39 +0000 (17:18 +0100)
Passing the engine number in a pointer variable to the callback needed
a two-step cast.
xboard.c
patch
|
blob
|
history
diff --git
a/xboard.c
b/xboard.c
index
167e8cf
..
024ea90
100644
(file)
--- 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;
}
}