summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-10 15:44:23 +0100
committerDan McGee <dan@archlinux.org>2011-01-10 17:50:03 +0100
commit3e1bdfa93c0c0c1a966ba24f8013754a8a87f0ec (patch)
tree7463db4f66e9ded8becb1232a1304353d31ee64e /src/pacman/util.c
parent5f140a62debb7d55436af7f84b0ecf5696f46c86 (diff)
downloadpacman-3e1bdfa93c0c0c1a966ba24f8013754a8a87f0ec.tar.gz
pacman-3e1bdfa93c0c0c1a966ba24f8013754a8a87f0ec.tar.xz
Use double rather than float everywhere
No real need to use the smaller floating point types here. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 4af639fd..fbc1a184 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -644,8 +644,7 @@ void print_packages(const alpm_list_t *packages)
/* %s : size */
if(strstr(temp,"%s")) {
char *size;
- double mbsize = 0.0;
- mbsize = (double)pkg_get_size(pkg) / (1024.0 * 1024.0);
+ double mbsize = (double)pkg_get_size(pkg) / (1024.0 * 1024.0);
pm_asprintf(&size, "%.2f", mbsize);
string = strreplace(temp, "%s", size);
free(size);