On Thu, 2012-01-19 at 11:10 +0100, Stephan Bergmann wrote:
> > --- a/connectivity/source/drivers/dbase/DTable.cxx
...
> >               (*m_pFileStream)<<  cTyp;
> >               if ( nDbaseType == VisualFoxPro )
> > -                (*m_pFileStream)<<  (nRecLength-1);
> > +                (*m_pFileStream)<<  sal_uInt16(nRecLength-1);
> 
> This would previously have been written as four bytes.  Are you sure 
> that writing it as two bytes is what is wanted?

        Oh - I didn't want to change anything, beyond fixing the compilation
bug. nRecLength is a sal_uInt16 - so subtracting one turns it into an
int ? if so please do fix that up.

> >               else
> >                   m_pFileStream->Write(aBuffer, 4);

        I guess that would be the equivalent as zeros for non-VisualFoxPro :-)

        Any chance you can fix it up ?

        Thanks,

                Michael.

-- 
michael.me...@suse.com  <><, Pseudo Engineer, itinerant idiot

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to