]> git.sur5r.net Git - cc65/blobdiff - src/cc65/loop.c
Improved implementation of OptPushPop
[cc65] / src / cc65 / loop.c
index 732a12b7dd475fd1a2c005f379145f962eee0272..cb58d126fb92422673f46696ca9ac1220fc3be23 100644 (file)
@@ -63,10 +63,8 @@ LoopDesc* AddLoop (unsigned sp, unsigned loop, unsigned label,
                   unsigned linc, unsigned lstat)
 /* Create and add a new loop descriptor */
 {
-    LoopDesc* L;
-
     /* Allocate a new struct */
-    L = xmalloc (sizeof (LoopDesc));
+    LoopDesc* L = (LoopDesc*) xmalloc (sizeof (LoopDesc));
 
     /* Fill in the data */
     L->StackPtr        = sp;