mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-24 17:23:08 +00:00
Use ptrdiff_t
This commit is contained in:
parent
b24732728c
commit
801b8b567e
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ size_t MWGui::wrap(size_t index, size_t max, int delta)
|
|||
return 0;
|
||||
return index + absDelta;
|
||||
}
|
||||
size_t absDelta = static_cast<size_t>(-static_cast<long>(delta));
|
||||
size_t absDelta = static_cast<size_t>(-static_cast<ptrdiff_t>(delta));
|
||||
if (index >= absDelta)
|
||||
return index - absDelta;
|
||||
else if (max == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue