taku910 / crfpp

CRF++: Yet Another CRF toolkit
Other
505 stars 192 forks source link

doubt of condition judgement in "param.cpp" #42

Open gaoshoufenmu opened 6 years ago

gaoshoufenmu commented 6 years ago

I encounter a question when reading the source code in "param.cpp" at line 205: "if (size == sizeof(ptr)) break;". I think this condition is used to check if the index size is out of range of array ptr, and it should be "if (size == sizeof(ptr)/sizeof(char *)) break;". I'm not sure if my idea is right. ..