about summary refs log tree commit diff stats
path: root/subx/023check_operand_sizes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'subx/023check_operand_sizes.cc')
-rw-r--r--subx/023check_operand_sizes.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/subx/023check_operand_sizes.cc b/subx/023check_operand_sizes.cc
index 8ad3b1aa..be4327f1 100644
--- a/subx/023check_operand_sizes.cc
+++ b/subx/023check_operand_sizes.cc
@@ -56,9 +56,7 @@ void check_operand_bounds(const word& w) {
 int32_t parse_int(const string& s) {
   istringstream in(s);
   int32_t result = 0;
-  if (starts_with(s, "0x"))
-    in >> std::hex;
-  in >> result;
+  in >> std::hex >> result;
   if (!in) {
     raise << "not a number: " << s << '\n' << end();
     return 0;