https://bugs.kde.org/show_bug.cgi?id=503863

            Bug ID: 503863
           Summary: KCalc produces wrong results with bit operations
                    starting with unary minus
    Classification: Applications
           Product: kcalc
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: evan.te...@gmail.com
          Reporter: joha4...@gmail.com
                CC: gabriel.barrantes....@outlook.com
  Target Milestone: ---

SUMMARY
KCalc produces wrong results with bit operations starting with unary minus

STEPS TO REPRODUCE
1.  Enter the sequence - 58 >> 2

OBSERVED RESULT
The computed value is -14

EXPECTED RESULT
The computed value is -15


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch @ Linux 6.14.4
KDE Plasma Version:  6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9

ADDITIONAL INFORMATION

Poking around a little, its quite clear that kcalc computes "-(58 >> 2)", not
"(-58) >> 2" (the later which does produce the correct result)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to