summaryrefslogtreecommitdiff
path: root/devel/tvision/patches/patch-lib_TChDirDialog_cc
blob: 36bb77cafb0cb5b8aa8eb18d7a1db4850b836ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-lib_TChDirDialog_cc,v 1.1 2012/06/28 05:35:33 dholland Exp $

Silence gcc pointer cast warnings. These have been checked to be
harmless.

--- lib/TChDirDialog.cc~	2001-09-22 19:19:23.000000000 +0000
+++ lib/TChDirDialog.cc
@@ -104,7 +104,7 @@ void TChDirDialog::handleEvent( TEvent& 
 		//!! Handle directory selection.
                 case cmDirSelection:
                     chDirButton->makeDefault( Boolean( int(
-			event.message.infoPtr ) ) );
+			(intptr_t)event.message.infoPtr ) ) );
                     return;     // NOTE: THIS IS RETURN NOT BREAK!!
 #endif
                 default: