Skip to content

Commit

Permalink
Fixed signedness compilation warning (MSVC x86)
Browse files Browse the repository at this point in the history
  • Loading branch information
mappzor authored and athre0z committed Jan 16, 2022
1 parent 3092818 commit 79c759e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/String.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ ZyanStatus ZydisStringAppendHexU32(ZyanString* string, ZyanU32 value, ZyanU8 pad
continue;
}
const ZyanU8 zero = force_leading_number && (v > 9) && (padding_length <= i) ? 1 : 0;
if (remaining <= (ZyanU8)i + zero)
if (remaining <= (ZyanUSize)i + zero)
{
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
}
Expand Down Expand Up @@ -274,7 +274,7 @@ ZyanStatus ZydisStringAppendHexU64(ZyanString* string, ZyanU64 value, ZyanU8 pad
continue;
}
const ZyanU8 zero = force_leading_number && (v > 9) && (padding_length <= i) ? 1 : 0;
if (remaining <= (ZyanU8)i + zero)
if (remaining <= (ZyanUSize)i + zero)
{
return ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE;
}
Expand Down

0 comments on commit 79c759e

Please sign in to comment.