[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PFile compiles again

Christian Reiniger wrote:
> Now it complains in Esd.cpp that it doesn't find esd.h (of course it can't
> because I don't have any E stuff installed. But it should compile
> nevertheless).
> make -k shows some more problems. I attached a log (reduced
> to the major items; there were also tons of "comparison between signed and
> unsigned" and "shift count can be negative" warnings)

I added a template class called Shift which gets rid of the warnings
about negative shifts. It does this by specializing the cases for each
type. If the count would have been negative the shift is not done. I
avoided using partial specialisation, since some compilers don't support
it and used a macro to do it instead.

I'll try and get rid of the signed/unsigned warnings.
Peter Burns