summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDebug.c
diff options
context:
space:
mode:
authordas <das>2006-07-20 06:26:45 (GMT)
committerdas <das>2006-07-20 06:26:45 (GMT)
commitcddfb29bfbad32d6f5cd897ee04c3cf73ed40500 (patch)
treefc8bec9dde27b2592c81f0797a3e93f4a2fdb7de /macosx/tkMacOSXDebug.c
parent5086b7cc72ed4bba62e553e7ff02e06314305990 (diff)
downloadtk-cddfb29bfbad32d6f5cd897ee04c3cf73ed40500.zip
tk-cddfb29bfbad32d6f5cd897ee04c3cf73ed40500.tar.gz
tk-cddfb29bfbad32d6f5cd897ee04c3cf73ed40500.tar.bz2
* macosx/tkMacOSXCursor.c (TkMacOSXCursor):
* macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): * macosx/tkMacOSXInit.c (Map): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
Diffstat (limited to 'macosx/tkMacOSXDebug.c')
-rw-r--r--macosx/tkMacOSXDebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDebug.c b/macosx/tkMacOSXDebug.c
index 041c0e1..a8d9231 100644
--- a/macosx/tkMacOSXDebug.c
+++ b/macosx/tkMacOSXDebug.c
@@ -54,7 +54,7 @@
* software in accordance with the terms specified in this
* license.
*
- * RCS: @(#) $Id: tkMacOSXDebug.c,v 1.2.2.7 2006/05/12 18:18:52 das Exp $
+ * RCS: @(#) $Id: tkMacOSXDebug.c,v 1.2.2.8 2006/07/20 06:26:45 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -565,7 +565,7 @@ TkMacOSXGetNamedDebugSymbol(const char* module, const char* symbol)
strx = sym->n_un.n_strx;
if ((sym->n_type & N_TYPE) == N_SECT &&
sym->n_sect == txtsectx &&
- strx > 0 && strx < strsize &&
+ strx > 0 && (uint32_t) strx < strsize &&
strcmp(strings + strx, symbol) == 0) {
addr = (void*) sym->n_value + slide;
break;