From 220ccc72f663efdc1e0c717388419260d3ea9c1a Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Fri, 17 Jul 2015 23:03:49 -0400 Subject: [PATCH] Debugger: Fix incorrect comparison. --- .../debugger/value/value_formatters/IntegerValueFormatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/debugger/value/value_formatters/IntegerValueFormatter.cpp b/src/apps/debugger/value/value_formatters/IntegerValueFormatter.cpp index 1ab280011a..a85626d822 100644 --- a/src/apps/debugger/value/value_formatters/IntegerValueFormatter.cpp +++ b/src/apps/debugger/value/value_formatters/IntegerValueFormatter.cpp @@ -143,7 +143,7 @@ IntegerValueFormatter::_ValidateSigned(const BString& input, type_code type, } case B_INT32_TYPE: { - if (parsedValue < INT32_MAX || parsedValue > INT32_MAX) + if (parsedValue < INT32_MIN || parsedValue > INT32_MAX) return B_BAD_VALUE; newValue.SetTo((int32)parsedValue);