]> git.sur5r.net Git - cc65/blobdiff - src/cc65/declattr.c
Working
[cc65] / src / cc65 / declattr.c
index b06c36aed3dfc5b460af0093483661bef1f84f2c..beeb8a76b81ed4af7f3e6dbf587c444e9456b5a0 100644 (file)
@@ -33,6 +33,8 @@
 
 
 
+#include <string.h>
+
 /* cc65 */
 #include "error.h"
 #include "scanner.h"
@@ -66,13 +68,13 @@ static attrib_t FindAttribute (const char* Attr)
  * Return atNone if the attribute name is not known.
  */
 {
-    attrib_t A;
+    int A;
 
     /* For now do a linear search */
     for (A = 0; A < atCount; ++A) {
        if (strcmp (Attr, AttrNames[A]) == 0) {
            /* Found */
-                   return A;
+                   return (attrib_t) A;
        }
     }
 
@@ -125,7 +127,7 @@ void ParseAttribute (const Declaration* D, DeclAttr* A)
 /* Parse an additional __attribute__ modifier */
 {
     ident    AttrName;
-    attrib_t AttrType;              
+    attrib_t AttrType;
 
     /* Initialize the attribute description with "no attribute" */
     A->AttrType = atNone;