From: Shawn P. <sha...@gm...> - 2012-09-21 15:26:06
|
On 18/09/2012 2:16 PM, sc...@op... wrote: > changeset: 0374aae7260a in /home/euweb/scm/hg_repos/euphoria > branch: default > author: Matt Lewis > url: http://scm.openeuphoria.org/hg/euphoria?cmd=changeset;node=0374aae7260a > description: > * added t_integer32 type to std/types.e for checking for a portable version of 32-bit euphoria's integer type > * made rand_range() more portable by using only 32-bit euphoria's integer type > * removed extra call to good_rand() when a double is passed for rand() > > diffstat: >> +-- Maximum and minimum values for Euphoria 31-bit integers (as implemented by 32-bit Euphoria) > +constant > + MAXINT32 = 1073741823, > + MININT32 = -17179869184 Matt, This number for MININT32 is wrong. MAXINT32 should be power(2,30)-1, and it is but MININT32 should be -power(2,30) and the value there isn't that. -- Shawn Pringle Comodoro Rivadavia, Argentina [Accepto GnuPG Correro] [I accept GnuPG Mail] |