Minimum doesn't work correctly with integer values if all values are > INT_MAX

Issue #828 new
Jim Rea
repo owner created an issue

Panorama is using INT_MAX, defined by Apple in limits.h. Apparently this is a 32 bit value, I think Panorama should be using LONG_MAX, which I think is the correct 64 bit value.

https://stackoverflow.com/questions/9760662/is-there-a-constant-which-defines-the-max-value-of-long-or-integer

I think that the Maximum command will not work if all values are more negative than -INT_MAX.

This also affects the aggregate( function.

Search for INT_MAX to find the two places in the code affected by this.

http://forum.provue.com/t/incorrect-minimum-values/1992

Comments (0)

  1. Log in to comment