소스 검색

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