parser
authorAnas Nashif <anas.nashif@intel.com>
Sun, 4 Nov 2012 15:12:59 +0000 (07:12 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Sun, 4 Nov 2012 15:12:59 +0000 (07:12 -0800)
lib/parser-sming.y

index 555e570..1ec76b3 100644 (file)
@@ -2161,8 +2161,8 @@ attribute_refinedBaseType:        OctetStringKeyword optsep_numberSpec_01
                                                          classPtr, thisParserPtr);
                            setAttributeParentType($$, smiHandle->typeBitsPtr);
                            if ($1) {
-                               setAttributeList($$, $1);
-                               for (p = $1; p; p = p->nextPtr)
+                               setAttributeList($$, (void *)$1);
+                               for (p = (void *)$1; p; p = (void *)p->nextPtr)
                                    ((NamedNumber *)(p->ptr))->typePtr = (Type*)$$;
                            }