From dbce439e7196ab6882634b270f2675b3ebcb33cd Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 9 Nov 2017 11:43:53 +0000 Subject: Adding tests for bslmm --- src/io.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/io.cpp') diff --git a/src/io.cpp b/src/io.cpp index 35a59ee..ef6c26a 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -2133,19 +2133,23 @@ bool ReadFile_est(const string &file_est, const vector &est_column, gamma = 1.0; for (size_t i = 0; i < n + 1; ++i) { if (i == est_column[0] - 1) { + enforce(ch_ptr); rs = ch_ptr; } if (i == est_column[1] - 1) { + enforce(ch_ptr); alpha = atof(ch_ptr); } if (i == est_column[2] - 1) { + enforce(ch_ptr); beta = atof(ch_ptr); } if (i == est_column[3] - 1) { + enforce(ch_ptr); gamma = atof(ch_ptr); } if (i < n) { - ch_ptr = strtok_safe(NULL, " \t"); + ch_ptr = strtok(NULL, " \t"); } } -- cgit v1.2.3