diff --git a/src/MIDebugEngine/Natvis.Impl/NatvisNames.cs b/src/MIDebugEngine/Natvis.Impl/NatvisNames.cs index 85972bdd8..ad8df5021 100644 --- a/src/MIDebugEngine/Natvis.Impl/NatvisNames.cs +++ b/src/MIDebugEngine/Natvis.Impl/NatvisNames.cs @@ -34,7 +34,7 @@ private void SetArraySize(int[] Dims) } private static Regex s_identifier = new Regex("^[a-zA-Z$_][a-zA-Z$_0-9]*"); - private static Regex s_numeric = new Regex("^[0-9]+(u|l|ul)*"); // only decimal constants + private static Regex s_numeric = new Regex("^[-]?[0-9]+(u|l|ul)*"); // only decimal constants private static Regex s_simpleType = new Regex( @"^(signed\s+char|unsigned\s+char|char16_t|char32_t|wchar_t|char|" + @"signed\s+short\s+int|signed\s+short|unsigned\s+short\s+int|unsigned\s+short|short\s+int|short|"