aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-04-17 17:27:37 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-04-17 17:27:37 +0000
commit809f40abc7a728f0d54a3da993043178695ac4c6 (patch)
treec19fd8570fec785cd77a9d44dbdfc71526baeae8
parent0306b0b4a588cc14ad4ea0ceff8397dcf9f31fca (diff)
downloadpaludis-809f40abc7a728f0d54a3da993043178695ac4c6.tar.gz
paludis-809f40abc7a728f0d54a3da993043178695ac4c6.tar.xz
Fix version comparisons on 64-bit machines.
-rw-r--r--paludis/version_spec.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/version_spec.cc b/paludis/version_spec.cc
index 58ee191..efd0abc 100644
--- a/paludis/version_spec.cc
+++ b/paludis/version_spec.cc
@@ -197,7 +197,7 @@ VersionSpec::VersionSpec(const std::string & text) :
else
break;
- unsigned x(std::numeric_limits<unsigned long>::max());
+ unsigned long x(std::numeric_limits<unsigned long>::max());
for ( ; p < text.length() ; ++p)
{
if (text.at(p) < '0' || text.at(p) > '9')
@@ -215,7 +215,7 @@ VersionSpec::VersionSpec(const std::string & text) :
/* patch level */
if (p < text.length() && 0 == text.compare(p, 2, "_p") && 0 != text.compare(p, 3, "_pr"))
{
- unsigned x(std::numeric_limits<unsigned long>::max());
+ unsigned long x(std::numeric_limits<unsigned long>::max());
for (p += 2 ; p < text.length() ; ++p)
{
if (text.at(p) < '0' || text.at(p) > '9')
@@ -232,7 +232,7 @@ VersionSpec::VersionSpec(const std::string & text) :
/* try */
if (p < text.length() && 0 == text.compare(p, 4, "-try"))
{
- unsigned x(std::numeric_limits<unsigned long>::max());
+ unsigned long x(std::numeric_limits<unsigned long>::max());
for (p += 4 ; p < text.length() ; ++p)
{
if (text.at(p) < '0' || text.at(p) > '9')