summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-11-18 22:02:58 (GMT)
committernijtmans <nijtmans>2009-11-18 22:02:58 (GMT)
commitea0295332cb0b7c680cc7c47a2e9676a02b04b16 (patch)
tree0b6516aa0ed3fe248a15e2a495bcc1f56683a817 /win
parent22da2964cc80cf1b750e2c467f9b732dc17f682f (diff)
downloadtcl-ea0295332cb0b7c680cc7c47a2e9676a02b04b16.zip
tcl-ea0295332cb0b7c680cc7c47a2e9676a02b04b16.tar.gz
tcl-ea0295332cb0b7c680cc7c47a2e9676a02b04b16.tar.bz2
Eliminate various gcc warnings (in -Wextra mode)
Diffstat (limited to 'win')
-rw-r--r--win/tclWinReg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c
index 849e9a9..e6d5b7a 100644
--- a/win/tclWinReg.c
+++ b/win/tclWinReg.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinReg.c,v 1.46 2009/08/16 10:20:19 nijtmans Exp $
+ * RCS: @(#) $Id: tclWinReg.c,v 1.47 2009/11/18 22:02:58 nijtmans Exp $
*/
#include "tclInt.h"
@@ -742,7 +742,7 @@ GetType(
* know about the type, just use the numeric value.
*/
- if (type > lastType || type < 0) {
+ if (type > lastType) {
Tcl_SetObjResult(interp, Tcl_NewIntObj((int) type));
} else {
Tcl_SetObjResult(interp, Tcl_NewStringObj(typeNames[type], -1));
@@ -1602,7 +1602,7 @@ ConvertDWORD(
*/
localType = (*((char*) &order) == 1) ? REG_DWORD : REG_DWORD_BIG_ENDIAN;
- return (type != localType) ? SWAPLONG(value) : value;
+ return (type != localType) ? (DWORD)SWAPLONG(value) : value;
}
/*