summaryrefslogtreecommitdiffstats
path: root/win/tclWinReg.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-10-07 11:58:32 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-10-07 11:58:32 (GMT)
commitcc38079bd48dcdb4acf1549563a39e55a0aa8352 (patch)
tree705e0aa6c090cc08e9ac37ebd8392c2c8e9e5054 /win/tclWinReg.c
parent91b97473f6a540005246e11fca267d496c224d80 (diff)
downloadtcl-cc38079bd48dcdb4acf1549563a39e55a0aa8352.zip
tcl-cc38079bd48dcdb4acf1549563a39e55a0aa8352.tar.gz
tcl-cc38079bd48dcdb4acf1549563a39e55a0aa8352.tar.bz2
Fix gcc warnings (discovered with latest mingw, based on gcc 4.6.1)
Diffstat (limited to 'win/tclWinReg.c')
-rw-r--r--win/tclWinReg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c
index a73be77..d4c7292 100644
--- a/win/tclWinReg.c
+++ b/win/tclWinReg.c
@@ -669,7 +669,7 @@ GetType(
* If we don't know about the type, just use the numeric value.
*/
- if (type > lastType || type < 0) {
+ if (type > lastType) {
Tcl_SetIntObj(resultPtr, (int) type);
} else {
Tcl_SetStringObj(resultPtr, typeNames[type], -1);
@@ -1528,5 +1528,5 @@ ConvertDWORD(
*/
localType = (*((char*)(&order)) == 1) ? REG_DWORD : REG_DWORD_BIG_ENDIAN;
- return (type != localType) ? SWAPLONG(value) : value;
+ return (type != localType) ? (DWORD)SWAPLONG(value) : value;
}