Ticket #297 (Fixed)Wed Aug 10 15:12:15 UTC 2011
Bad SWI call in CLXLite
Reported by: | hilltop (573) | Severity: | Normal |
Part: | RISC OS: C/C++ toolchain | Release: | |
Milestone: | Status | Fixed |
Details by hilltop (573):
In file:castle/RiscOS/Sources/Lib/CLXLite/c/wholefls
Line 94, function wf_save:
<pre>err = swix(OSFile, _INR(0,2) | _INR(4,5),
10, filename, 0xFFD, buf, bufsz);</pre>
should be something like:
<pre>err = swix(OSFile, _INR(0,2) | _INR(4,5),
10, filename, 0xFFD, buf, (int32)buf + bufsz);</pre>
This is because OS_File 0,10 take start, end address, not start, length.
(Assigned to toolchain becaused used by modsqz.)
Changelog:
Modified by Jeffrey Lee (213) Wed, August 10 2011 - 23:04:11 GMT
- Status changed from Open to Fixed
Well spotted! I vaguely recall ROOL commenting about something going wrong when they tried building some tools with CLXLite, maybe this was the issue.