|
From: Hans-Bernhard B. <br...@ph...> - 2004-12-03 13:32:40
|
Shigeharu TAKENO wrote: > double gray = colorspec->value; > + int new_color; > > if (colorspec->type != TC_FRAC) > return; > > - int new_color = (gray <= 0) ? 0 : (int)(gray * sm_palette.colors); > + new_color = (gray <= 0) ? 0 : (int)(gray * sm_palette.colors); Thanks for spotting this. I'm checking in that fix right away. Reminder to all: we're not even fully up to ANSI/ISO C89 yet. Which means: no C99 nor C++ specialities are allowed in gnuplot's source (yes, Petr, that does mean no // style comments, either...). People using GCC version 3 or higher may have to configure with the appropriate CFLAGS set to disallow C99-isms like the above from creeping into the CVS. |