Author: tkreuzer
Date: Tue Mar 11 22:46:49 2014
New Revision: 62479
URL:
http://svn.reactos.org/svn/reactos?rev=62479&view=rev
Log:
[PSDK]
intsafe.h: fix a comment and 2 benign "typos"
Modified:
trunk/reactos/include/psdk/intsafe.h
Modified: trunk/reactos/include/psdk/intsafe.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/intsafe.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/intsafe.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/intsafe.h [iso-8859-1] Tue Mar 11 22:46:49 2014
@@ -657,7 +657,7 @@
M2 = M2Low + M2Hi * 0x100000000
Then the multiplication looks like this:
- M1 * M2 = (M1Low + M1Hi * 0x100000000) + (M2Low + M2Hi * 0x100000000)
+ M1 * M2 = (M1Low + M1Hi * 0x100000000) * (M2Low + M2Hi * 0x100000000)
= M1Low * M2Low
+ M1Low * M2Hi * 0x100000000
+ M2Low * M1Hi * 0x100000000
@@ -686,13 +686,13 @@
}
else
{
- *pOutput = LONGLONG_ERROR;
+ *pOutput = ULONGLONG_ERROR;
return INTSAFE_E_ARITHMETIC_OVERFLOW;
}
if (Temp > ULONG_MAX)
{
- *pOutput = LONGLONG_ERROR;
+ *pOutput = ULONGLONG_ERROR;
return INTSAFE_E_ARITHMETIC_OVERFLOW;
}