Make XDR type into enum class
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_nmr.cpp
index d98f5fc236b5f2f2f5c7813ff28962eaf55cbb2e..9b35ed9a621bd61f7977f630bb18ba9d7cd8385b 100644 (file)
@@ -90,11 +90,11 @@ static double mypow(double x, double y)
 static real blk_value(t_enxblock* blk, int sub, int index)
 {
     range_check(index, 0, blk->sub[sub].nr);
-    if (blk->sub[sub].type == xdr_datatype_float)
+    if (blk->sub[sub].type == XdrDataType::Float)
     {
         return blk->sub[sub].fval[index];
     }
-    else if (blk->sub[sub].type == xdr_datatype_double)
+    else if (blk->sub[sub].type == XdrDataType::Double)
     {
         return blk->sub[sub].dval[index];
     }