more accurate casting
authorDana Jansens <danakj@orodu.net>
Mon, 11 Nov 2002 00:16:17 +0000 (00:16 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 11 Nov 2002 00:16:17 +0000 (00:16 +0000)
src/Configuration.hh

index 8f4a315745a2420ce7a1463911a6aacd8a197e29..e42acad44bff3b41599c9d7161cc100cbc312610 100644 (file)
@@ -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;