Browse Source

Follow up to rXXXXXX: Fix builds on MACs that are not in autоbuild

https://paste.yandex-team.ru/804bf63f-d433-481e-945b-b555fb15be21

не светилось на CI'ных сборках.
Разбираться с автосборкой будут в
osidorkin 2 years ago
parent
commit
9651b8fa0f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      util/string/cast.h

+ 1 - 2
util/string/cast.h

@@ -391,9 +391,8 @@ template <typename T, unsigned base = 10, class TChar = char>
 class TIntStringBuf {
 private:
     // inline constexprs are not supported by CUDA yet
-    static constexpr char IntToChar[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
+    static constexpr char IntToChar[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
 
-    static_assert(Y_ARRAY_SIZE(IntToChar) == 16, "expect Y_ARRAY_SIZE(IntToChar) == 16");
     static_assert(1 < base && base < 17, "expect 1 < base && base < 17");
 
 public: