1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-02-06 03:33:47 +00:00

1. Fixed integer overflow detection for 32 bit

2. Fixed compiler warning
This commit is contained in:
Bryan Roe
2020-06-30 10:58:59 -07:00
parent 7e81f12a33
commit ba8e43b47c
2 changed files with 2 additions and 2 deletions

View File

@@ -797,7 +797,7 @@ __EXPORT_TYPE int ILibSimpleDataStore_GetEx(ILibSimpleDataStore dataStore, char*
if (centry != NULL)
{
ILibInflate(centry->value, centry->valueLength, NULL, &tmplen, 0);
if (buffer != NULL && bufferLen >= tmplen)
if (buffer != NULL && bufferLen >= (int)tmplen)
{
ILibInflate(centry->value, centry->valueLength, buffer, &tmplen, 0);
}