fixed some more warnings
authorThomas Bluemel <thomas@reactsoft.com>
Tue, 29 Nov 2005 22:07:10 +0000 (22:07 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Tue, 29 Nov 2005 22:07:10 +0000 (22:07 +0000)
svn path=/trunk/; revision=19757

reactos/ntoskrnl/kdbg/kdb_string.c
reactos/ntoskrnl/ke/i386/fpu.c

index cf4c08b..e2c9789 100644 (file)
@@ -118,7 +118,7 @@ strtoul(const char *nptr, char **endptr, int base)
   else if (neg)
     acc = -acc;
   if (endptr != 0)
-    *endptr = any ? (char *)s - 1 : (char *)nptr;
+    *endptr = any ? (char *)((size_t)(s - 1)) : (char *)((size_t)nptr);
   return acc;
 }
 
index a9908da..7ec5d77 100644 (file)
@@ -110,7 +110,7 @@ KiTagWordFxsaveToFnsave(PFXSAVE_FORMAT FxSave)
 
 
 STATIC VOID
-KiFnsaveToFxsaveFormat(PFXSAVE_FORMAT FxSave, CONST PFNSAVE_FORMAT FnSave)
+KiFnsaveToFxsaveFormat(PFXSAVE_FORMAT FxSave, PFNSAVE_FORMAT FnSave)
 {
     INT i;
 
@@ -138,7 +138,7 @@ KiFnsaveToFxsaveFormat(PFXSAVE_FORMAT FxSave, CONST PFNSAVE_FORMAT FnSave)
 }
 
 STATIC VOID
-KiFxsaveToFnsaveFormat(PFNSAVE_FORMAT FnSave, CONST PFXSAVE_FORMAT FxSave)
+KiFxsaveToFnsaveFormat(PFNSAVE_FORMAT FnSave, PFXSAVE_FORMAT FxSave)
 {
     INT i;
 
@@ -158,7 +158,7 @@ KiFxsaveToFnsaveFormat(PFNSAVE_FORMAT FnSave, CONST PFXSAVE_FORMAT FxSave)
 
 
 STATIC VOID
-KiFloatingSaveAreaToFxSaveArea(PFX_SAVE_AREA FxSaveArea, CONST FLOATING_SAVE_AREA *FloatingSaveArea)
+KiFloatingSaveAreaToFxSaveArea(PFX_SAVE_AREA FxSaveArea, FLOATING_SAVE_AREA *FloatingSaveArea)
 {
     if (FxsrSupport)
     {