From: Dana Jansens Date: Mon, 11 Nov 2002 00:16:17 +0000 (+0000) Subject: more accurate casting X-Git-Tag: openbox-2_1_3^2~20 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=ec95f0c2cc464e5a5f8ef2e1f0085b10459a9efb;p=dana%2Fopenbox.git more accurate casting --- diff --git a/src/Configuration.hh b/src/Configuration.hh index 8f4a3157..e42acad4 100644 --- a/src/Configuration.hh +++ b/src/Configuration.hh @@ -75,10 +75,10 @@ public: bool getValue(const std::string &rname, bool &value) const; inline bool getValue(const std::string &rname, int &value) const { - return getValue(rname, (long) value); + return getValue(rname, (long&) value); } inline bool getValue(const std::string &rname, unsigned int &value) const { - return getValue(rname, (unsigned long) value); + return getValue(rname, (unsigned long&) value); } bool getValue(const std::string &rname, long &value) const; bool getValue(const std::string &rname, unsigned long &value) const;