summaryrefslogtreecommitdiff
path: root/src/lib/tng_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tng_io.c')
-rw-r--r--src/lib/tng_io.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 6e0f915..caa1445 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -17636,6 +17636,11 @@ tng_function_status DECLSPECDLLEXPORT tng_util_pos_read_range
&n_values_per_frame,
&type);
+ if(stat == TNG_SUCCESS && type != TNG_FLOAT_DATA)
+ {
+ return(TNG_FAILURE);
+ }
+
return(stat);
}
@@ -17664,6 +17669,11 @@ tng_function_status DECLSPECDLLEXPORT tng_util_vel_read_range
&n_values_per_frame,
&type);
+ if(stat == TNG_SUCCESS && type != TNG_FLOAT_DATA)
+ {
+ return(TNG_FAILURE);
+ }
+
return(stat);
}
@@ -17692,6 +17702,11 @@ tng_function_status DECLSPECDLLEXPORT tng_util_force_read_range
&n_values_per_frame,
&type);
+ if(stat == TNG_SUCCESS && type != TNG_FLOAT_DATA)
+ {
+ return(TNG_FAILURE);
+ }
+
return(stat);
}
@@ -17719,6 +17734,11 @@ tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_read_range
&n_values_per_frame,
&type);
+ if(stat == TNG_SUCCESS && type != TNG_FLOAT_DATA)
+ {
+ return(TNG_FAILURE);
+ }
+
return(stat);
}
contact: Jan Huwald // Impressum