Fix MSVC warning about signed/unsigned mismatch. In this case it was not a bug, because the compiler implicitly casts to unsigned, when signed and unsigned are compared, so (-1 < 0x23U) is false.

svn path=/trunk/; revision=53163
This commit is contained in:
Timo Kreuzer 2011-08-10 13:52:30 +00:00
parent f7ead57f00
commit 8db60ead01

View file

@ -56,8 +56,8 @@ ULONG WINAPI RtlNtStatusToDosErrorNoTeb( NTSTATUS status )
while (table->start)
{
if (status < table->start) break;
if (status < table->end)
if ((ULONG)status < table->start) break;
if ((ULONG)status < table->end)
{
DWORD ret = table->table[status - table->start];
/* unknown entries are 0 */