Skip to content
This repository
Browse code

Treat printed_flag_p like the boolean it is, rather than pretending i…

…t's a counter
  • Loading branch information...
commit 5f6ac7a7131aaedeede2f792f506cebea83ca582 1 parent ee4c8c9
Andy Lester petdance authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 frontend/pbc_dump/packdump.c
4 frontend/pbc_dump/packdump.c
... ... @@ -1,5 +1,5 @@
1 1 /*
2   -Copyright (C) 2001-2009, Parrot Foundation.
  2 +Copyright (C) 2001-2012, Parrot Foundation.
3 3 This program is free software. It is subject to the same license as
4 4 Parrot itself.
5 5
@@ -165,7 +165,7 @@ pobj_flag_dump(PARROT_INTERP, long flags)
165 165 if (printed_flag_p)
166 166 Parrot_io_printf(interp, ",");
167 167 Parrot_io_printf(interp, "%s", flag_bit_names[idx]);
168   - ++printed_flag_p;
  168 + printed_flag_p = 1;
169 169 }
170 170 ++idx;
171 171 flags >>= 1;

0 comments on commit 5f6ac7a

Please sign in to comment.
Something went wrong with that request. Please try again.