Bug fix in parser when reading large integers
This commit is contained in:
parent
72d52860f6
commit
ca049e5f6f
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ class len_tag; //see https://github.com/boostorg/spirit/issues/680
|
|||
|
||||
const x3::rule<class TorrentID, std::vector<TorrentValue>> torrent = "torrent";
|
||||
const x3::rule<class TorrentValueID, TorrentValue> torrent_value = "torrent_value";
|
||||
const x3::rule<class TorrentIntID, int> torrent_int = "torrent_int";
|
||||
const x3::rule<class TorrentIntID, TorrentIntType> torrent_int = "torrent_int";
|
||||
const x3::rule<class TorrentStringID, TorrentStringType, true> torrent_string = "torrent_string";
|
||||
const x3::rule<class TorrentListID, std::vector<TorrentValue>> torrent_list = "torrent_list";
|
||||
const x3::rule<class TorrentDictID, std::map<TorrentStringType, TorrentValue>> torrent_dict = "torrent_dict";
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue