From d9920ba5205aae475057ce6ec8203773457b209b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 17 May 2011 15:53:06 +0000 Subject: [PATCH] - update_versions: fix bug in version number parsing (from Kevin) svn path=/trunk/boinc/; revision=23552 --- checkin_notes | 6 ++++++ tools/update_versions | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 7bc071e634..25e762da1f 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/tools/update_versions b/tools/update_versions index 7d35c7cb35..9240cc43b9 100755 --- a/tools/update_versions +++ b/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]; }