- Fix build on alpha

PR:		ports/62096
Submitted by:	maintainer
Noticed by:	bento via kris
This commit is contained in:
Kirill Ponomarev 2004-01-30 08:54:10 +00:00
parent 8ed3a1bc1c
commit 44f74845e2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99474
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,13 @@
--- src/widgets/menu.cpp.orig Thu Jan 29 22:23:06 2004
+++ src/widgets/menu.cpp Thu Jan 29 22:23:49 2004
@@ -191,8 +191,8 @@
x = event.button.x;
y = event.button.y;
} else {
- x = reinterpret_cast<int>(event.user.data1);
- y = reinterpret_cast<int>(event.user.data2);
+ x = (int)event.user.data1;
+ y = (int)event.user.data2;
}
const int item = hit(x,y);

View file

@ -0,0 +1,13 @@
--- src/widgets/menu.cpp.orig Thu Jan 29 22:23:06 2004
+++ src/widgets/menu.cpp Thu Jan 29 22:23:49 2004
@@ -191,8 +191,8 @@
x = event.button.x;
y = event.button.y;
} else {
- x = reinterpret_cast<int>(event.user.data1);
- y = reinterpret_cast<int>(event.user.data2);
+ x = (int)event.user.data1;
+ y = (int)event.user.data2;
}
const int item = hit(x,y);