fix: Various LGTM fixes

This commit is contained in:
Panquesito7
2020-06-23 14:35:13 -05:00
parent 7393d88811
commit 0356a9cdf3
4 changed files with 11 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ void beadSort(int *a, int len) {
// allocating memory
unsigned char *beads = new unsigned char[max * len];
memset(beads, 0, max * len);
memset(beads, 0, static_cast<size_t>(max) * len);
// mark the beads
for (int i = 0; i < len; i++)