Преглед на файлове

: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;