[Bug 57371] New: filebuffer.cpp eqSign.m_idx-1 FileBuffer::getValues QChar effectOperator

Michael Back Michael.Back at astrum.de
Thu Apr 17 14:10:06 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=57371     
           Summary: filebuffer.cpp eqSign.m_idx-1 FileBuffer::getValues
                    QChar effectOperator
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: Michael.Back at astrum.de


Version:           3.0a3 (using KDE KDE 3.0.5b)
Installed from:    Compiled From Sources
Compiler:          gcc3.2 
OS:          Linux

If you use a 64-Bit CPU and operationingsystem then is a long not a int.Therefore in the file: parts/trollproject/filebuffer.cppin function: FileBuffer::getValuethe line: QChar effectOperator = line[eqSign.m_idx-1]; is wrong.The variable eqSign.m_idx should be a int type and not a long. A cast likeQChar effectOperator = line[static_cast<int>(eqSign.m_idx-1)]; works, but maybe only on a 64-bit system.




More information about the KDevelop-devel mailing list