[Libreoffice-bugs] [Bug 42492] BASIC HEX command on 64-bit systems not returning 16 characters on negative long integer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 31 09:01:03 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=42492

Uray M. János <uray.janos at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|libreoffice-bugs at lists.free |uray.janos at gmail.com
                   |desktop.org                 |

--- Comment #3 from Uray M. János <uray.janos at gmail.com> 2012-07-31 07:01:03 UTC ---
Created attachment 64979
  --> https://bugs.freedesktop.org/attachment.cgi?id=64979
fdo#42492: fixing Basic HEX command

The problem is that actually "integer" is 16-bit and "long" is 32-bit
(according to
http://help.libreoffice.org/Basic/Using_Variables#Integer_Variables , and
according to the source code). The HEX command incorrectly printed 16 (15
because of buffer overflow) and 8 digits. I've corrected this in the patch.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Libreoffice-bugs mailing list