Commit 643bf953 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/OffsetPointer: use std::ptrdiff_t

parent 36a187da
......@@ -35,7 +35,7 @@
* Offset the given pointer by the specified number of bytes.
*/
constexpr void *
OffsetPointer(void *p, ptrdiff_t offset) noexcept
OffsetPointer(void *p, std::ptrdiff_t offset) noexcept
{
return (char *)p + offset;
}
......@@ -44,7 +44,7 @@ OffsetPointer(void *p, ptrdiff_t offset) noexcept
* Offset the given pointer by the specified number of bytes.
*/
constexpr const void *
OffsetPointer(const void *p, ptrdiff_t offset) noexcept
OffsetPointer(const void *p, std::ptrdiff_t offset) noexcept
{
return (const char *)p + offset;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment