mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-22 21:01:31 +01:00
uintptr_t in strlen.cpp
This commit is contained in:
parent
62a379d0a0
commit
59059ce210
@ -11,7 +11,7 @@ extern "C" UINTN EFIAPI AsciiStrLen (IN CONST CHAR8 *String);
|
||||
|
||||
// Hope that unsigned long long is as big in bits sa a pointer difference.
|
||||
|
||||
#define DOWN_CAST_TO_SIZE_T(a) ( (ptrdiff_t)(a) > (ptrdiff_t)(SIZE_T_MAX) ? abort(), 0 : (size_t)(a) )
|
||||
#define DOWN_CAST_TO_SIZE_T(a) ( (uintptr_t)(a) > (uintptr_t)(SIZE_T_MAX) ? abort(), 0 : (size_t)(a) )
|
||||
|
||||
/* Return the length of the null-terminated string STR. Scan for
|
||||
the null terminator quickly by testing four bytes at a time. */
|
||||
|
Loading…
Reference in New Issue
Block a user