[Genabel-commits] r1705 - pkg/ProbABEL/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Apr 28 11:49:37 CEST 2014
Author: maartenk
Date: 2014-04-28 11:49:36 +0200 (Mon, 28 Apr 2014)
New Revision: 1705
Modified:
pkg/ProbABEL/src/gendata.cpp
Log:
-detecting not avaibles in mldose file more rigid(catches [Nn][NnAa]?)
Modified: pkg/ProbABEL/src/gendata.cpp
===================================================================
--- pkg/ProbABEL/src/gendata.cpp 2014-04-27 22:17:28 UTC (rev 1704)
+++ pkg/ProbABEL/src/gendata.cpp 2014-04-28 09:49:36 UTC (rev 1705)
@@ -57,11 +57,11 @@
// check NaN (right now checks only first character)
// TODO: make catching of NaN more rigid
- if (*all_numbers == 'N')
+ if (toupper(*all_numbers) == 'N')
{
result = std::numeric_limits<double>::quiet_NaN();
// Skip other characters of NaN
- while ((*all_numbers == 'a') | (*all_numbers == 'N'))
+ while ((toupper(*all_numbers) == 'A') | (toupper(*all_numbers) == 'N'))
{
all_numbers++;
}
More information about the Genabel-commits
mailing list