summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.h
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2012-01-28 11:57:27 -0800
committerSteve Langasek <steve.langasek@canonical.com>2012-01-28 11:57:27 -0800
commite7a0af555a1a12dce01d0928b0262ec450c34bb0 (patch)
treecb20c92b9376c66d44046df486b124dfe431ff69 /apt-pkg/algorithms.h
parenta5da6449447ee7f14fc0e271b6fe07739387ba8c (diff)
apt-pkg/algorithms.{cc,h}: use an int to represent resolver scores, not
a signed short, because large upgrades can result in an overflow for core packages. Thanks again to Colin Watson. Closes: #657732, LP: #917173.
Diffstat (limited to 'apt-pkg/algorithms.h')
-rw-r--r--apt-pkg/algorithms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/algorithms.h b/apt-pkg/algorithms.h
index 185d11e96..37eacf1f8 100644
--- a/apt-pkg/algorithms.h
+++ b/apt-pkg/algorithms.h
@@ -96,7 +96,7 @@ class pkgProblemResolver /*{{{*/
enum Flags {Protected = (1 << 0), PreInstalled = (1 << 1),
Upgradable = (1 << 2), ReInstateTried = (1 << 3),
ToRemove = (1 << 4)};
- signed short *Scores;
+ int *Scores;
unsigned char *Flags;
bool Debug;