From ec95f0c2cc464e5a5f8ef2e1f0085b10459a9efb Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 11 Nov 2002 00:16:17 +0000 Subject: [PATCH] more accurate casting --- src/Configuration.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1