| Type | Bug | Status | tested | Date | 21-Jul-2010 17:12 |
|---|---|---|---|---|---|
| Version | alpha 99 | Category | Datatype | Submitted by | meijeru |
| Platform | All | Severity | minor | Priority | normal |
| Summary | setting event offset values to more than 2 ** 15 gives wrong result, without error |
|---|---|
| Description | The offset component of event! values is stored as two 16 bits signed integers (undocumented restriction, the component is stated to be of type pair!). This gives rise to the following results: see code. The second example even allows to surmise how the setting is done: by adding a shifted value for y to the value for x! |
| Example code |
>> make event! [offset: 32768x0]
== make event! [
offset: -32768x0
]
>> e: make event! [offset: 65536x1]
== make event! [
offset: 0x2
]
|
| Assigned to | n/a | Fixed in | alpha 102 | Last Update | 23-Sep-2010 09:58 |
|---|
| Comments | |
|---|---|
|
(0002453)
Carl 21-Jul-2010 21:40 |
Ok, good one. Fixed in A102.
Note that range is now defined as +/-32767.0 (That is, -32768 is not valid at this time.) |
|
(0002455)
meijeru 21-Jul-2010 22:59 |
I retrospectively had to correct the title (2 ** 31 was a typo) |
| Date | User | Field | Action | Change |
|---|---|---|---|---|
| 23-Sep-2010 09:58 | BrianH | Category | Modified | Unspecified => Datatype |
| 23-Sep-2010 09:58 | BrianH | Status | Modified | built => tested |
| 21-Jul-2010 22:59 | meijeru | Comment : 0002455 | Added | - |
| 21-Jul-2010 22:58 | meijeru | Summary | Modified | setting event offset values to more than 2 ** 31 gives wrong result, without error => setting event offset values to more than 2 ** 15 gives wrong result, without error |
| 21-Jul-2010 22:08 | carl | Fixedin | Modified | => alpha 102 |
| 21-Jul-2010 21:40 | carl | Status | Modified | reviewed => built |
| 21-Jul-2010 21:40 | carl | Comment : 0002453 | Added | - |
| 21-Jul-2010 21:14 | carl | Code | Modified | - |
| 21-Jul-2010 21:14 | carl | Status | Modified | submitted => reviewed |
| 21-Jul-2010 17:12 | meijeru | Ticket | Added | - |