Fix some lgtm issues

This commit is contained in:
Ingo Weyrich
2019-10-30 14:07:49 +01:00
parent d7ec033829
commit 1d51016bdd
8 changed files with 18 additions and 18 deletions

View File

@@ -249,7 +249,7 @@ public:
ar_realloc(w, h, offset);
if (flags & ARRAY2D_CLEAR_DATA) {
memset(data + offset, 0, w * h * sizeof(T));
memset(data + offset, 0, static_cast<unsigned long>(w) * h * sizeof(T));
}
}