Переглянути джерело

:recycle: adjusted number type to match documentation

Felix Bytow 2 роки тому
батько
коміт
4e99ca6871
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      projects/forth-kata/include/Token.h

+ 2 - 1
projects/forth-kata/include/Token.h

@@ -1,6 +1,7 @@
 #ifndef FORTH_KATA_TOKEN_H
 #define FORTH_KATA_TOKEN_H
 
+#include <cstdint>
 #include <iosfwd>
 #include <stdexcept>
 #include <string>
@@ -15,7 +16,7 @@ namespace token {
  */
 struct Number final
 {
-    int value; ///< The numeric value of the token.
+    std::int16_t value; ///< The numeric value of the token.
 
     bool operator==(Number const &rhs) const noexcept;