- update_versions: fix bug in version number parsing (from Kevin)

svn path=/trunk/boinc/; revision=23552
This commit is contained in:
David Anderson 2011-05-17 15:53:06 +00:00
parent 93735f7172
commit d9920ba520
2 changed files with 7 additions and 1 deletions

View File

@ -3010,3 +3010,9 @@ David 16 May 2011
boinc_api.cpp
lib/
Makefile.am
David 18 May 2011
- update_versions: fix bug in version number parsing (from Kevin)
tools/
update_versions

View File

@ -249,7 +249,7 @@ function parse_version($v) {
if (!is_numeric($x[0])) return -1;
if (sizeof($x) > 1) {
if (!is_numeric($x[1])) return -1;
return $x[0] + 100*$x[1];
return $x[1] + 100*$x[0];
}
return (int)$x[0];
}