changeset 30176:0cd93ca0b237

maint: lo-ieee.h: Use C++ named union declaration rather than C-style typedef. * lo-ieee.h: Use C++ named union declaration for "lo_ieee_double" and "lo_ieee_float".
author Rik <rik@octave.org>
date Tue, 14 Sep 2021 16:59:56 -0700
parents b063bc05be18
children 2f39642b9084
files liboctave/util/lo-ieee.h
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/util/lo-ieee.h	Tue Sep 14 11:23:50 2021 -0700
+++ b/liboctave/util/lo-ieee.h	Tue Sep 14 16:59:56 2021 -0700
@@ -55,17 +55,17 @@
 /* FIXME: This code assumes that a double has twice the
           number of bits as an int */
 
-typedef union
+union lo_ieee_double
 {
   double value;
   unsigned int word[2];
-} lo_ieee_double;
+};
 
-typedef union
+union lo_ieee_float
 {
   float value;
   unsigned int word;
-} lo_ieee_float;
+};
 
 extern OCTAVE_API void octave_ieee_init (void);