2006/2/9, Chris Laurel wrote:
> > 2006/2/8, Pat Suwalski wrote:
> >> DW, could you check this patch in, as well as the your GLSL fix for th=
> >> uninitialized variable? Then we'll see if it still runs and call it a
> >> release!
> > I committed both fixes. They're pretty minor, should the ChangeLog be
> > changed?
> I had to make a modification to formatnum.cpp to make your patch work on
> Win32. Annoyingly, MS Visual C++ doesn't have snprintf defined in stdio.h=
> there's just _snprintf. I think VC's stdio.h conforms more strictly to th=
> ANSI C standard than gcc's, but it's an irritation nonetheless.
I just noticed that formatnum.cpp contains a typo from the last commit:
snprintf(fmt, sizeof(fmt)/sizeof(char), "%%.%df", 5);
is called twice, on lines 73, 74. If there're no objections, I'll
remove the extra line.