* src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 28 Mar 2005 00:47:38 +0000 (00:47 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 28 Mar 2005 00:47:38 +0000 (00:47 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3709 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCBBlock.c

index 5f18c5f8edda2bc4da716c59aab8e445d9515c4a..d65987b3a3f2cb39e8a64e6f7027ea3c7b97c3c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+       * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
+
 2005-03-26 Raphael Neider <rneider AT web.de>
 
        * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
index 1156434e59f5d056fd2c92fd7d09540ccb40cc7b..b84511a5174fcd7e19154aca7b1bf1b7a065c3da 100644 (file)
@@ -518,13 +518,13 @@ iCodeBreakDown (iCode * ic)
   iCode *loop = ic;
   ebbIndex *ebbi;
   
-  ebbi = Safe_alloc (sizeof (ebbIndex *));
+  ebbi = Safe_alloc (sizeof (ebbIndex));
   ebbi->count = 0;
   ebbi->dfOrder = NULL; /* no depth first order information yet */
 
   /* allocate for the first entry */
 
-  ebbs = Safe_alloc (sizeof (eBBlock **));
+  ebbs = Safe_alloc (sizeof (eBBlock *));
   ebbi->bbOrder = ebbs;
 
   while (loop)
@@ -544,7 +544,7 @@ iCodeBreakDown (iCode * ic)
       /* allocate for the next one. Remember to clear the new */
       /*  pointer at the end, that was created by realloc. */
 
-      ebbs = Safe_realloc (ebbs, (ebbi->count + 1) * sizeof (eBBlock **));
+      ebbs = Safe_realloc (ebbs, (ebbi->count + 1) * sizeof (eBBlock *));
       ebbi->bbOrder = ebbs;
 
       ebbs[ebbi->count] = 0;
@@ -589,7 +589,7 @@ iCodeBreakDown (iCode * ic)
 
              /* if we have stopped at the block , allocate for an extra one */
 
-             ebbs = Safe_realloc (ebbs, (ebbi->count + 1) * sizeof (eBBlock **));
+             ebbs = Safe_realloc (ebbs, (ebbi->count + 1) * sizeof (eBBlock *));
              ebbi->bbOrder = ebbs;
 
              ebbs[ebbi->count] = 0;