Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
value has type long, or equivalently signed long int. In C, abs(some_long) returns int (to get a long result you would have to use labs(some_long) due to lack of overloading), but in C++ it returns long.
- Loading branch information
8ea096c
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.
is %ld valid msvc printf formatting?
8ea096c
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.
https://msdn.microsoft.com/en-us/library/56e442dc.aspx says it is.