Skip to content

Fix overflow in IntConvertor - #93

Merged
mgatny merged 2 commits into
masterfrom
unknown repository
Jun 8, 2016
Merged

mgatny merged 2 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Feb 22, 2016

Copy link
Copy Markdown

The negation of INT_MIN causes an overflow. If we cast first, both cast and negation of unsigned quantity are well-defined and the result is what we expect. Fixes #82.

The negation of INT_MIN causes an overflow. If we cast first,
both cast and negation of unsigned quantity are well-defined and
the result is what we expect.
@ghost

ghost commented Jun 4, 2016

Copy link
Copy Markdown
Author

@Ambal any chance this could be merged?

@Ambal

Ambal commented Jun 4, 2016

Copy link
Copy Markdown
Contributor

Hi, @krzysztofwos . We need to wait for Oren Miller as he is a maintainer.

@mgatny
mgatny merged commit a9bab3b into quickfix:master Jun 8, 2016
mgatny referenced this pull request Mar 27, 2017
Don't rely on c++11 while still avoiding overflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants