mirror of https://github.com/BOINC/boinc.git
- update_versions: fix bug in version number parsing (from Kevin)
svn path=/trunk/boinc/; revision=23552
This commit is contained in:
parent
93735f7172
commit
d9920ba520
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue