gl_engine: revert some wrong change
Some checks are pending
Android / build_x86_64 (push) Waiting to run
Android / build_aarch64 (push) Waiting to run
iOS / build_x86_64 (push) Waiting to run
iOS / build_arm64 (push) Waiting to run
macOS / build (push) Waiting to run
macOS / compact_test (push) Waiting to run
macOS / unit_test (push) Waiting to run
Ubuntu / build (push) Waiting to run
Ubuntu / compact_test (push) Waiting to run
Ubuntu / unit_test (push) Waiting to run
Windows / build (push) Waiting to run
Windows / compact_test (push) Waiting to run
Windows / unit_test (push) Waiting to run

my fault. signed value should be respected
from cd12618529
This commit is contained in:
Hermet Park 2025-05-16 02:08:25 +09:00
parent 97d96a7f8b
commit e98b87892b

View file

@ -166,7 +166,7 @@ struct Array
template<class COMPARE> void sort() template<class COMPARE> void sort()
{ {
qsort<COMPARE>(data, 0, count - 1); qsort<COMPARE>(data, 0, (int32_t)(count - 1));
} }
~Array() ~Array()
@ -176,7 +176,7 @@ struct Array
private: private:
template<class COMPARE> template<class COMPARE>
void qsort(T* arr, uint32_t low, uint32_t high) void qsort(T* arr, int32_t low, int32_t high)
{ {
if (low < high) { if (low < high) {
auto i = low; auto i = low;