1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00

Fixed a bug: Attribute numbers were not correctly read.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4350 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-10-08 17:54:23 +00:00
parent 07c25db768
commit 1122ddb05a

View 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;