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:
parent
1e98812a56
commit
313a415e2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue