mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:17:45 +00:00
AK: Add support for 64-bit size_t
This commit is contained in:
parent
ce56770875
commit
dc93ed4368
4 changed files with 18 additions and 13 deletions
|
@ -88,17 +88,9 @@ const LogStream& operator<<(const LogStream&, const String&);
|
|||
const LogStream& operator<<(const LogStream&, const StringView&);
|
||||
const LogStream& operator<<(const LogStream&, i32);
|
||||
const LogStream& operator<<(const LogStream&, u32);
|
||||
const LogStream& operator<<(const LogStream&, i64);
|
||||
const LogStream& operator<<(const LogStream&, u64);
|
||||
|
||||
#ifdef __serenity__
|
||||
inline const LogStream& operator<<(const LogStream& stream, size_t value)
|
||||
{
|
||||
if constexpr (sizeof(size_t) == 4)
|
||||
return stream << (u32)value;
|
||||
else
|
||||
return stream << (u64)value;
|
||||
}
|
||||
#endif
|
||||
const LogStream& operator<<(const LogStream&, unsigned long);
|
||||
|
||||
const LogStream& operator<<(const LogStream&, const void*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue