EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2014
10:43 PM
BRS Type promotion bug?
From the lang.reference, 3.5 Type Conversion (Promotion):
Does not seem to be the case though:
So either documentation or the implementation must be wrong. Which one?
... If the result of an integer *, -, or + operation is outside the integer range, the operation will be done in double precision and the result will be double precision.
Does not seem to be the case though:
BSD> ? 65536*65536, 65536*32768
0 -2147483648
BSD> ? 2^30, 2^31, 2^32
1073741824 -2147483648 0
So either documentation or the implementation must be wrong. Which one?
1 REPLY 1

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2014
11:38 AM
Re: BRS Type promotion bug?
Bug filed.
- Joel
- Joel