We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef537ce + 534f955 commit 3a1298fCopy full SHA for 3a1298f
src/error.cpp
@@ -1,6 +1,7 @@
1
#include "error.hpp"
2
3
#include <cassert>
4
+#include <cstddef>
5
6
namespace cmkr {
7
namespace error {
@@ -20,6 +21,6 @@ static const char *err_string[] = {
20
21
};
22
23
const char *cmkr_error_status(int i) {
- assert(i >= 0 && i < (sizeof(err_string) / sizeof(*(err_string))));
24
+ assert(i >= 0 && static_cast<size_t>(i) < (sizeof(err_string) / sizeof(*(err_string))));
25
return err_string[i];
26
}
0 commit comments