Fix a segment fault issue in cascade classfier
authorgreensea <gs@bbxy.net>
Tue, 31 Mar 2015 09:28:40 +0000 (17:28 +0800)
committergreensea <gs@bbxy.net>
Tue, 7 Apr 2015 02:31:12 +0000 (10:31 +0800)
commit52c727f09a6dc8de98c3ecb5b5ecf1d6b19d962f
tree7279d3e0248b3a9b7d8f0f192e3a3b008461f4f5
parent864b4e3b2628c2669ebfb3e11e3cbab9ab95e8af
Fix a segment fault issue in cascade classfier

work_var_count and sample_count are both 32bit integer, if the product of work_var_count and sample_count is bigger than 2^31, the compiler will treat (work_var_count*sample_count) as a negative number. Force work_var_count as an unsigned 64bit integer to avoid this issue.
apps/traincascade/boost.cpp
apps/traincascade/old_ml_boost.cpp
apps/traincascade/old_ml_tree.cpp