diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-11-01 17:02:44 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-11-01 17:02:44 +0000 |
commit | 8093111697385c1f9e8f72e2a7f8e12c924670e2 (patch) | |
tree | 32728548e1b1495cda94d8972c20804ff4992c46 /src | |
parent | 0f92e69c8fe508f387551a3d58a1f4c748e6611a (diff) | |
download | libgats-8093111697385c1f9e8f72e2a7f8e12c924670e2.tar.gz libgats-8093111697385c1f9e8f72e2a7f8e12c924670e2.tar.bz2 libgats-8093111697385c1f9e8f72e2a7f8e12c924670e2.tar.xz libgats-8093111697385c1f9e8f72e2a7f8e12c924670e2.zip |
Oops, bools aren't floats!
Diffstat (limited to 'src')
-rw-r--r-- | src/dictionary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dictionary.cpp b/src/dictionary.cpp index ec65a3b..f3a89c8 100644 --- a/src/dictionary.cpp +++ b/src/dictionary.cpp | |||
@@ -183,7 +183,7 @@ int64_t Gats::Dictionary::getInt( const Bu::FString &sKey ) | |||
183 | 183 | ||
184 | double Gats::Dictionary::getFloat( const Bu::FString &sKey ) | 184 | double Gats::Dictionary::getFloat( const Bu::FString &sKey ) |
185 | { | 185 | { |
186 | Gats::Boolean *pOb = dynamic_cast<Gats::Boolean *>( get( sKey ) ); | 186 | Gats::Float *pOb = dynamic_cast<Gats::Float *>( get( sKey ) ); |
187 | if( pOb ) | 187 | if( pOb ) |
188 | throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", | 188 | throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", |
189 | sKey.getStr() ); | 189 | sKey.getStr() ); |
@@ -243,7 +243,7 @@ int64_t Gats::Dictionary::getInt( const Bu::FString &sKey ) const | |||
243 | 243 | ||
244 | double Gats::Dictionary::getFloat( const Bu::FString &sKey ) const | 244 | double Gats::Dictionary::getFloat( const Bu::FString &sKey ) const |
245 | { | 245 | { |
246 | Gats::Boolean *pOb = dynamic_cast<Gats::Boolean *>( get( sKey ) ); | 246 | Gats::Float *pOb = dynamic_cast<Gats::Float *>( get( sKey ) ); |
247 | if( pOb ) | 247 | if( pOb ) |
248 | throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", | 248 | throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", |
249 | sKey.getStr() ); | 249 | sKey.getStr() ); |