Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index



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.meeks@suse.com  <><, Pseudo Engineer, itinerant idiot


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.