]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug: Attribute numbers were not correctly read.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 8 Oct 2009 17:54:23 +0000 (17:54 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 8 Oct 2009 17:54:23 +0000 (17:54 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4350 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/sim65/cfgdata.c

index fc1d428bdfc8da30220510fb60471063689a48a7..5c33ea2a710df842fb5bd4c991ac82b5df233bcb 100644 (file)
@@ -217,7 +217,7 @@ int CfgDataGetNum (Collection* Attributes, const char* Name, long* Val)
  * true. If not found, return false.
  */
 {
-    CfgData* D = CfgDataGetTyped (Attributes, Name, CfgDataString);
+    CfgData* D = CfgDataGetTyped (Attributes, Name, CfgDataNumber);
     if (D == 0) {
         /* Not found or wrong type */
         return 0;