Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=554c094b9c8f88b13a0f0d00ed5d7574009ef5a2
commit 554c094b9c8f88b13a0f0d00ed5d7574009ef5a2 Author: James Buren <[email protected]> Date: Thu Apr 4 06:36:39 2013 -0500 local: fix percent function. must have whole expression in ()'s before the cast to int. diff --git a/src/local.h b/src/local.h index c36a1f2..56a02b4 100644 --- a/src/local.h +++ b/src/local.h @@ -196,7 +196,7 @@ static inline int raidmindisks(int level) } static inline int get_percent(int a,int b) { - return ((int) (long double) a / b * 100); + return ((int)((long double) a / b * 100)); } extern struct device **device_probe_all(bool disk,bool raid); extern struct device *device_open(const char *path); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
