Fix harmless warning in wxString in wxUSE_UNICODE_UTF8 build

Add an explicit cast from ptrdiff_t to unsigned int to avoid the
warning which is harmless because the difference here is bound by the
cache size.

See #23297.
This commit is contained in:
Hartwig Wiesmann 2023-02-26 00:07:51 +09:00 committed by Vadim Zeitlin
parent 1e98812a56
commit 313a415e2e

View file

@ -553,7 +553,7 @@ private:
c->Reset();
// and remember the last used element
LastUsedCacheElement() = c - cacheBegin;
LastUsedCacheElement() = static_cast<unsigned int>(c - cacheBegin);
}
return c;