From 0043aa401e64b15834758b3a5eff33c6c9e8769d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 18 Apr 2024 15:11:06 +0200 Subject: [PATCH] signbit: Fix typos. * lib/signbitd.c: Fix typo in comment. * lib/signbitf.c: Likewise. --- ChangeLog | 6 ++++++ lib/signbitd.c | 2 +- lib/signbitf.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93b5048919..aa8533e40d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-04-18 Bruno Haible + + signbit: Fix typos. + * lib/signbitd.c: Fix typo in comment. + * lib/signbitf.c: Likewise. + 2024-04-18 Collin Funk gnulib-tool.py: Ignore 'attribute-defined-outside-init' warnings. diff --git a/lib/signbitd.c b/lib/signbitd.c index d662192a3b..2f6fdfb96f 100644 --- a/lib/signbitd.c +++ b/lib/signbitd.c @@ -32,7 +32,7 @@ gl_signbitd (double arg) { #if defined DBL_SIGNBIT_WORD && defined DBL_SIGNBIT_BIT /* The use of a union to extract the bits of the representation of a - 'long double' is safe in practice, despite of the "aliasing rules" of + 'double' is safe in practice, despite of the "aliasing rules" of C99, because the GCC docs say "Even with '-fstrict-aliasing', type-punning is allowed, provided the memory is accessed through the union type." diff --git a/lib/signbitf.c b/lib/signbitf.c index f24caf4a12..f4ad9567ff 100644 --- a/lib/signbitf.c +++ b/lib/signbitf.c @@ -32,7 +32,7 @@ gl_signbitf (float arg) { #if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT /* The use of a union to extract the bits of the representation of a - 'long double' is safe in practice, despite of the "aliasing rules" of + 'float' is safe in practice, despite of the "aliasing rules" of C99, because the GCC docs say "Even with '-fstrict-aliasing', type-punning is allowed, provided the memory is accessed through the union type." -- 2.39.5