Skip to content

Commit

Permalink
Changes to 'mbrot' resulted in a declaration of 'int i;' hiding a pre…
Browse files Browse the repository at this point in the history
…vious declaration. Hat tip to MSVC; gcc didn't warn me about it.
  • Loading branch information
Bill-Gray committed Jan 6, 2023
1 parent 287a53f commit cff6d3c
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions curses.h
Original file line number Diff line number Diff line change
@@ -40,9 +40,9 @@ Defined by this header:
#define PDC_VER_MAJOR 4
#define PDC_VER_MINOR 3
#define PDC_VER_CHANGE 5
#define PDC_VER_YEAR 2022
#define PDC_VER_MONTH 12
#define PDC_VER_DAY 15
#define PDC_VER_YEAR 2023
#define PDC_VER_MONTH 01
#define PDC_VER_DAY 05

#define PDC_STRINGIZE( x) #x
#define PDC_stringize( x) PDC_STRINGIZE( x)
2 changes: 0 additions & 2 deletions demos/mbrot.c
Original file line number Diff line number Diff line change
@@ -231,8 +231,6 @@ int main( const int argc, const char **argv)
_n_colors = COLORS; /* use PDCursesMod's rgb palette */
else if( !_n_colors)
{
int i;

while( _n_colors * (_n_colors + 1) / 2 < COLOR_PAIRS - COLOR0 &&
_n_colors < COLORS - COLOR0)
_n_colors++;

0 comments on commit cff6d3c

Please sign in to comment.