SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. switch to numeral systems mode 2. switch base to decimal 3. enter a negative number i.e. -300 4. click one of the 64 bit fields OBSERVED RESULT Clicking bit 8 will show: 18446744073709551188 EXPECTED RESULT Showing the result as a signed number SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Gentoo/KDE 5.26.5 (available in About System) KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION
Git commit 11748ab4a51debdc5738625da783a4710b61f293 by Johannes Elgaard. Committed on 23/06/2025 at 14:14. Pushed by gabrielbarrantes into branch 'master'. Bit manipulation now works with negative numbers Changed KCalcBitset operate on signed integers, so that manipulating bits of negative numbers does not cause a sudden change to a huge positive number. M +1 -1 kcalc.cpp M +1 -1 kcalc.h M +3 -3 kcalc_bitset.cpp M +4 -4 kcalc_bitset.h https://invent.kde.org/utilities/kcalc/-/commit/11748ab4a51debdc5738625da783a4710b61f293