Fix bug in ComplexExp::toChars(). Also fixed in dmd 2.060.

This commit is contained in:
kai
2012-07-14 19:55:52 +02:00
parent 0b45147aee
commit cb77cca0d3

View File

@@ -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));