summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/tests/allocator_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bx/tests/allocator_test.cpp')
-rw-r--r--3rdparty/bx/tests/allocator_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/bx/tests/allocator_test.cpp b/3rdparty/bx/tests/allocator_test.cpp
index 1de97e02c3a..635d01a3175 100644
--- a/3rdparty/bx/tests/allocator_test.cpp
+++ b/3rdparty/bx/tests/allocator_test.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2010-2023 Branimir Karadzic. All rights reserved.
+ * Copyright 2010-2022 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/
@@ -24,19 +24,19 @@ struct MockNonFreeingAllocator : public bx::AllocatorI
BX_ASSERT(m_sbrk + _size < BX_COUNTOF(m_storage), "");
BX_UNUSED(_ptr, _file, _line);
- const uintptr_t sbrk = bx::alignUp(m_sbrk, bx::max(int32_t(_align), 1) );
+ const uint32_t sbrk = bx::alignUp(m_sbrk, bx::max(_align, 1) );
m_sbrk = sbrk + _size;
return &m_storage[sbrk];
}
- uintptr_t m_sbrk;
+ uint32_t m_sbrk;
BX_ALIGN_DECL(256, uint8_t) m_storage[0x10000];
};
bool testAlignment(size_t _expected, void* _ptr)
{
- bool aligned = bx::isAligned(_ptr, int32_t(_expected) );
+ bool aligned = bx::isAligned(_ptr, _expected);
// BX_TRACE("%p, %d", _ptr, _expected);
BX_WARN(aligned, "%p not aligned to %d bytes.", _ptr, _expected);
return aligned;