summaryrefslogtreecommitdiff
path: root/devel/kyra/files/patch-guitest__guitest.cpp
blob: de9b79c958b203ab7cf4ddb64a09973ad46445d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- guitest/guitest.cpp.orig	2005-04-07 05:53:51 UTC
+++ guitest/guitest.cpp
@@ -96,19 +96,19 @@ class MyConsole : public KrConsole
 		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: