mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
stdio-common: Use array_length and array_end macros
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <array_length.h>
|
||||
#include <ctype.h>
|
||||
#include <ieee754.h>
|
||||
#include <math.h>
|
||||
@@ -320,8 +321,8 @@ __printf_fphex (FILE *fp,
|
||||
/* Look for trailing zeroes. */
|
||||
if (! zero_mantissa)
|
||||
{
|
||||
wnumend = &wnumbuf[sizeof wnumbuf / sizeof wnumbuf[0]];
|
||||
numend = &numbuf[sizeof numbuf / sizeof numbuf[0]];
|
||||
wnumend = array_end (wnumbuf);
|
||||
numend = array_end (numbuf);
|
||||
while (wnumend[-1] == L'0')
|
||||
{
|
||||
--wnumend;
|
||||
|
Reference in New Issue
Block a user