]> git.saurik.com Git - apt.git/commitdiff
fix compiler error if compiled with -std=c++0x
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 1 Mar 2010 21:47:17 +0000 (22:47 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 1 Mar 2010 21:47:17 +0000 (22:47 +0100)
apt-pkg/algorithms.cc

index c905cffa9ca0a763dc8f9868ad93c204c2c9a4e6..f8a9e210c48f24a36f3e14aeebcb816876b1919d 100644 (file)
@@ -535,11 +535,11 @@ void pkgProblemResolver::MakeScores()
    // Important Required Standard Optional Extra
    signed short PrioMap[] = {
       0,
-      _config->FindI("pkgProblemResolver::Scores::Important",3),
-      _config->FindI("pkgProblemResolver::Scores::Required",2),
-      _config->FindI("pkgProblemResolver::Scores::Standard",1),
-      _config->FindI("pkgProblemResolver::Scores::Optional",-1),
-      _config->FindI("pkgProblemResolver::Scores::Extra",-2)
+      (signed short) _config->FindI("pkgProblemResolver::Scores::Important",3),
+      (signed short) _config->FindI("pkgProblemResolver::Scores::Required",2),
+      (signed short) _config->FindI("pkgProblemResolver::Scores::Standard",1),
+      (signed short) _config->FindI("pkgProblemResolver::Scores::Optional",-1),
+      (signed short) _config->FindI("pkgProblemResolver::Scores::Extra",-2)
    };
    signed short PrioEssentials = _config->FindI("pkgProblemResolver::Scores::Essentials",100);
    signed short PrioInstalledAndNotObsolete = _config->FindI("pkgProblemResolver::Scores::NotObsolete",1);