瀏覽代碼

Cast for g++

Kajetan Johannes Hammerle 1 月之前
父節點
當前提交
94f14acd54
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/core/utils/HashedString.hpp

+ 1 - 1
include/core/utils/HashedString.hpp

@@ -24,7 +24,7 @@ namespace Core {
     class HashedString {
         static_assert(N > 0, "length of hashed string must be positive");
         StringHash hash;
-        char data[N];
+        char data[static_cast<u32>(N)];
 
     public:
         HashedString() : hash() {