You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
program t(output);
begin
writeln(1/3:8); {specify fieldwidth = 8}
end.
output is:
3.3e-001 <--- fieldwidth is 9 chars
I think the issue is that in lang/pc/libpc/wrr.c it is assumed that exponents have only 2 digits, but linux 386 (& probably some other platforms) need 3 digits.
for example, on linux386:
output is:
3.3e-001 <--- fieldwidth is 9 chars
I think the issue is that in lang/pc/libpc/wrr.c it is assumed that exponents have only 2 digits, but linux 386 (& probably some other platforms) need 3 digits.
I fixed it by adding this code to wrr.c
and
Works for me.
The completed version of wrr.c is attached.
PS. I have a feeling there a way to test this on other platforms using qemu, but I can't figure out how. Anyone got a quick overview where to start?
wrr.c.txt
The text was updated successfully, but these errors were encountered: