From cdc1e51494c6afc16f00e2d5829db5250a801f42 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 24 Jul 2009 08:49:32 +0000 Subject: Fixed a bug in the versionstr test (sort test always succeeded) --- server/src/versionstr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src') diff --git a/server/src/versionstr.cc b/server/src/versionstr.cc index 8c0521f..bfa8bb4 100644 --- a/server/src/versionstr.cc +++ b/server/src/versionstr.cc @@ -200,7 +200,7 @@ int main() std::vector::iterator j = refs.begin(); while(i != versions.end()) { printf("%s should be %s\n", ((std::string)*i).c_str(), j->c_str()); - if(((std::string)*i) != *j) return false; + if(((std::string)*i) != *j) return 1; i++; j++; } -- cgit v1.2.3