summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_type.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5tools_type.c')
-rw-r--r--tools/lib/h5tools_type.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/lib/h5tools_type.c b/tools/lib/h5tools_type.c
index b4e6d08..bbd1b8d 100644
--- a/tools/lib/h5tools_type.c
+++ b/tools/lib/h5tools_type.c
@@ -75,7 +75,7 @@ h5tools_get_little_endian_type(hid_t tid)
size = H5Tget_size(tid);
sign = H5Tget_sign(tid);
- switch( type_class )
+ switch( type_class )
{
case H5T_INTEGER:
{
@@ -88,7 +88,7 @@ h5tools_get_little_endian_type(hid_t tid)
else if ( size == 8 && sign == H5T_SGN_2)
p_type=H5Tcopy(H5T_STD_I64LE);
else if ( size == 1 && sign == H5T_SGN_NONE)
- p_type=H5Tcopy(H5T_STD_U8LE);
+ p_type=H5Tcopy(H5T_STD_U8LE);
else if ( size == 2 && sign == H5T_SGN_NONE)
p_type=H5Tcopy(H5T_STD_U16LE);
else if ( size == 4 && sign == H5T_SGN_NONE)
@@ -97,14 +97,14 @@ h5tools_get_little_endian_type(hid_t tid)
p_type=H5Tcopy(H5T_STD_U64LE);
}
break;
-
+
case H5T_FLOAT:
if ( size == 4)
p_type=H5Tcopy(H5T_IEEE_F32LE);
else if ( size == 8)
p_type=H5Tcopy(H5T_IEEE_F64LE);
break;
-
+
case H5T_TIME:
case H5T_BITFIELD:
case H5T_OPAQUE:
@@ -115,10 +115,10 @@ h5tools_get_little_endian_type(hid_t tid)
case H5T_VLEN:
case H5T_ARRAY:
break;
-
+
default:
break;
-
+
}
return(p_type);
@@ -152,7 +152,7 @@ h5tools_get_big_endian_type(hid_t tid)
size = H5Tget_size(tid);
sign = H5Tget_sign(tid);
- switch( type_class )
+ switch( type_class )
{
case H5T_INTEGER:
{
@@ -165,7 +165,7 @@ h5tools_get_big_endian_type(hid_t tid)
else if ( size == 8 && sign == H5T_SGN_2)
p_type=H5Tcopy(H5T_STD_I64BE);
else if ( size == 1 && sign == H5T_SGN_NONE)
- p_type=H5Tcopy(H5T_STD_U8BE);
+ p_type=H5Tcopy(H5T_STD_U8BE);
else if ( size == 2 && sign == H5T_SGN_NONE)
p_type=H5Tcopy(H5T_STD_U16BE);
else if ( size == 4 && sign == H5T_SGN_NONE)
@@ -174,14 +174,14 @@ h5tools_get_big_endian_type(hid_t tid)
p_type=H5Tcopy(H5T_STD_U64BE);
}
break;
-
+
case H5T_FLOAT:
if ( size == 4)
p_type=H5Tcopy(H5T_IEEE_F32BE);
else if ( size == 8)
p_type=H5Tcopy(H5T_IEEE_F64BE);
break;
-
+
case H5T_TIME:
case H5T_BITFIELD:
case H5T_OPAQUE:
@@ -192,13 +192,13 @@ h5tools_get_big_endian_type(hid_t tid)
case H5T_VLEN:
case H5T_ARRAY:
break;
-
+
default:
break;
-
+
}
-
+
return(p_type);
}