aboutsummaryrefslogtreecommitdiff
path: root/devel/kyra/files/patch-guitest__guitest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/kyra/files/patch-guitest__guitest.cpp')
-rw-r--r--devel/kyra/files/patch-guitest__guitest.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/kyra/files/patch-guitest__guitest.cpp b/devel/kyra/files/patch-guitest__guitest.cpp
new file mode 100644
index 000000000000..d70993b5656c
--- /dev/null
+++ b/devel/kyra/files/patch-guitest__guitest.cpp
@@ -0,0 +1,26 @@
+--- guitest/guitest.cpp.orig
++++ guitest/guitest.cpp
+@@ -96,19 +96,19 @@
+ switch ( event.type )
+ {
+ case KrWidgetEvent::ACTIVATED:
+- sprintf( buf, "ACTIVATED %s source=0x%x\n", source->WidgetType(), (unsigned)source );
++ sprintf( buf, "ACTIVATED %s source=0x%x\n", source->WidgetType(), (uintptr_t)source );
+ break;
+
+ case KrWidgetEvent::DEACTIVATED:
+- sprintf( buf, "DEACTIVATED %s source=0x%x\n", source->WidgetType(), (unsigned)source );
++ sprintf( buf, "DEACTIVATED %s source=0x%x\n", source->WidgetType(), (uintptr_t)source );
+ break;
+
+ case KrWidgetEvent::COMMAND:
+- sprintf( buf, "COMMAND %s source=0x%x command=%s arg=%s\n", source->WidgetType(), (unsigned)source, event.command.command, event.command.arg );
++ sprintf( buf, "COMMAND %s source=0x%x command=%s arg=%s\n", source->WidgetType(), (uintptr_t)source, event.command.command, event.command.arg );
+ break;
+
+ case KrWidgetEvent::SELECTION:
+- sprintf( buf, "SELECTION %s source=0x%x id=%d text=%s\n", source->WidgetType(), (unsigned)source, event.selection.index, event.selection.text ? event.selection.text : "(null)" );
++ sprintf( buf, "SELECTION %s source=0x%x id=%d text=%s\n", source->WidgetType(), (uintptr_t)source, event.selection.index, event.selection.text ? event.selection.text : "(null)" );
+ break;
+
+ default: