diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/cparser/CPP/DefineTable.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/cparser/CPP/DefineTable.java index 3ddf1be9c74..086a7b1e31a 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/cparser/CPP/DefineTable.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/cparser/CPP/DefineTable.java @@ -882,9 +882,9 @@ private static String stripCast(String strValue) { int endParen = strValue.indexOf(')', pos + 1); if (endParen != -1) { String subStr = strValue.substring(pos + 1, endParen); + subStr = subStr.trim(); if (subStr.length() > 0) { int subPos = 0; - subStr = subStr.trim(); boolean isValid = Character.isJavaIdentifierStart(subStr.charAt(0)); while (isValid && subPos < subStr.length()) { char ch = subStr.charAt(subPos++);