[Frugalware-git] pacman-g2: Fixed a wrong casting (was a warning)

Christian Hamar alias krix krics at linuxforum.hu
Thu Nov 1 16:31:33 CET 2007


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=6871204e1e5d53b5bb5b640a1cb06c169397254e

commit 6871204e1e5d53b5bb5b640a1cb06c169397254e
Author: Christian Hamar alias krix <krics at linuxforum.hu>
Date:   Thu Nov 1 16:31:25 2007 +0100

Fixed a wrong casting (was a warning)
* In add.c need to cast to (long) not to (int)

diff --git a/lib/libpacman/add.c b/lib/libpacman/add.c
index 2890d68..09f9a1a 100644
--- a/lib/libpacman/add.c
+++ b/lib/libpacman/add.c
@@ -187,7 +187,7 @@ int _pacman_add_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name)
/* copy over the install reason */
pmpkg_t *local = _pacman_db_get_pkgfromcache(db, info->name);
if(local) {
-		info->reason = (int)_pacman_pkg_getinfo(local, PM_PKG_REASON);
+		info->reason = (long)_pacman_pkg_getinfo(local, PM_PKG_REASON);
}

/* add the package to the transaction */


More information about the Frugalware-git mailing list