mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 06:13:14 +01:00
Fix bug in ComplexExp::toChars(). Also fixed in dmd 2.060.
This commit is contained in:
@@ -2576,8 +2576,8 @@ char *ComplexExp::toChars()
|
||||
creall(value).format(buf1, sizeof(buf1));
|
||||
cimagl(value).format(buf2, sizeof(buf2));
|
||||
#else
|
||||
ld_sprint(buffer, 'g', creall(value));
|
||||
ld_sprint(buffer, 'g', cimagl(value));
|
||||
ld_sprint(buf1, 'g', creall(value));
|
||||
ld_sprint(buf2, 'g', cimagl(value));
|
||||
#endif
|
||||
sprintf(buffer, "(%s+%si)", buf1, buf2);
|
||||
assert(strlen(buffer) < sizeof(buffer));
|
||||
|
||||
Reference in New Issue
Block a user