Samuel-Tyler / fast_ber

A C++11 ASN.1 BER Encoding and Decoding Library
Boost Software License 1.0
84 stars 11 forks source link

compile error with long long integers #3

Closed cc9cii closed 5 years ago

cc9cii commented 5 years ago

Hello, I don't know for sure if this is an issue so apologies in advance in case this is an user error. I'm evaluating various ASN.1 projects currently. While trying out your compiler with a sample from my client I get an error with this line:

Integer64 ::= INTEGER (-9223372036854775808..9223372036854775807)

The error message from the compiler is:

Compilation error: stoll argument out of range

I'm using MSVC 15.9.14 (latest Community 2017)

Samuel-Tyler commented 5 years ago

Hi!

Thanks for your interest. I believe this is likely an issue as the full range of 64 bit ints should be supported.

Could you send me an ASN.1 file, so I can determine whether it would likely work with this compiler?

Thanks, Sam

cc9cii commented 5 years ago

Sorry, the file contents can't be shared since it is under an NDA. However, for testing, any asn.1 file can be modified to include a tag of above type Integer64.

Samuel-Tyler commented 5 years ago

I've resolved parsing of int min on the devel branch.

Thanks for your bug report.