X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=Orientation.h;h=6f31dacbcd2be874ed5a53a73e356bf274193d2f;hp=7ff8e87299fc52ce91f94e09bbe77171f087095e;hb=HEAD;hpb=a95154919f950f86de9104b2b9dcf1f0c7e83387 diff --git a/Orientation.h b/Orientation.h index 7ff8e87..6f31dac 100644 --- a/Orientation.h +++ b/Orientation.h @@ -3,6 +3,7 @@ #include #include +#include #include "simul.h" @@ -23,7 +24,7 @@ public: double getProb(int dir) { return prob[dir]; } void read(FILE* fi) { - fscanf(fi, "%lf", &prob[0]); + assert(fscanf(fi, "%lf", &prob[0]) == 1); prob[1] = 1.0 - prob[0]; }