aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 54523b88..60332871 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -232,7 +232,7 @@ void location_cb(Widget *wid, void *data)
*/
void b1_cb(Widget *wid, void *cb_data)
{
- int bn = (int)cb_data;
+ int bn = VOIDP2INT(cb_data);
int k = event_key();
if (k && k <= 7) {
_MSG("[%s], mouse button %d was pressed\n", button_names[bn], k);