-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BJData dimension length can not be string_t::npos, fix #3541 #3543
Conversation
@nlohmann Please don't merge just yet. |
@fangq I've added the new tests to the 32bit unit test. Please apply the top commit from my branch: https://github.com/falbrechtskirchinger/json/tree/issue3541 Edit: I'm creating a PR. GitHub support has explained to me, that when comparing across forks, the number of forks listed is capped at 200. Constructing the URL for comparing manually does work, though, e.g.: |
add test cases to 32bit unit test
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Didn’t we want to get rid of npos? |
I was going to do that as part of my BJData-related PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
this patch should fix the assertion error in #3541. The string_t::npos (-1) is used as a flag and can not be a valid dimension length.
as test case has been added - will find out if it works on 32 bit builds.