This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Joseph Myers wrote:
typedef double float_t; /* `float' expressions are evaluated as
`double'. */
This is a strange default; normal practice is to evaluate float
expressions as float
Perhaps this dates back to K&R C, where it was common practice to evaluate float expressions as double. That all went out the window with C89, and I agree with your proposal to modernize and simplify this.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |