# New Ticket Created by  Jarkko Hietaniemi 
# Please include the string:  [perl #15883]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=15883 >


SGI cc gets upset by enum bit arithmetics.

diff -ruN parrot/stacks.c parrot+cast/stacks.c
--- parrot/stacks.c     2002-07-04 23:39:44.000000000 +0300
+++ parrot+cast/stacks.c        2002-07-31 07:47:03.000000000 +0300
@@ -90,7 +90,7 @@
             last = new_chunk;
         }
         new_chunk->used = old_chunk->used;
-        new_chunk->flags = old_chunk->flags & ~STACK_CHUNK_COW_FLAG;
+        new_chunk->flags = (Stack_chunk_flags)((int)old_chunk->flags & 
+~(int)STACK_CHUNK_COW_FLAG); /* Can't do bit arithmetics on enums. */
         /* Copy stack buffer */
         new_chunk->buffer = new_buffer_header(interp);
         Parrot_allocate(interp, new_chunk->buffer,

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen


Reply via email to