summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@ubuntu.com>2012-01-29 14:47:34 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-01-29 14:47:34 +0100
commitd0f2c87cd7e4c0457d83ada4f27c2442dff2ef5c (patch)
tree55b58a96405541e38b439a4593de7113b0a19b49 /apt-pkg/algorithms.h
parentcffabf7d7e3a4c7475bf6722d41e20454d759666 (diff)
* apt-pkg/algorithms.cc:
- use a signed int instead of short for score calculation as upgrades become so big now that it can overflow (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;