diff --git a/src/parser.cpp b/src/parser.cpp index aca2c40..df1f04f 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -93,7 +93,7 @@ class len_tag; //see https://github.com/boostorg/spirit/issues/680 const x3::rule> torrent = "torrent"; const x3::rule torrent_value = "torrent_value"; -const x3::rule torrent_int = "torrent_int"; +const x3::rule torrent_int = "torrent_int"; const x3::rule torrent_string = "torrent_string"; const x3::rule> torrent_list = "torrent_list"; const x3::rule> torrent_dict = "torrent_dict"; diff --git a/src/parser.hpp b/src/parser.hpp index c3eb10b..0c3f341 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -9,7 +9,7 @@ namespace duck { typedef std::string_view TorrentStringType; -typedef long long int TorrentIntType; +typedef signed long long int TorrentIntType; struct TorrentValue : public boost::spirit::x3::variant< TorrentIntType,