From 206fee601b27f7809765c531c9e754bad7a19a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Mon, 28 Mar 2022 19:32:33 +0200 Subject: [PATCH] Fix a strange comparison --- src/widgets/HexWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/HexWidget.cpp b/src/widgets/HexWidget.cpp index 334176be..39d9d2e2 100644 --- a/src/widgets/HexWidget.cpp +++ b/src/widgets/HexWidget.cpp @@ -726,7 +726,7 @@ void HexWidget::w_increaseDecrease() } int64_t value = (int64_t)d.getValue(); uint8_t sz = d.getNBytes(); - if (!d.getMode() == IncrementDecrementDialog::Increase) { + if (d.getMode() == IncrementDecrementDialog::Decrease) { value *= -1; } RzCoreLocked core(Core());