Revert until fixed
[mono.git] / mcs / mcs / constant.cs
index 18ca2dd7bdd3d8f57defbfb04817b737b351abec..76c2c5667a8574a363f163ea62e0f84844823968 100644 (file)
@@ -246,7 +246,7 @@ namespace Mono.CSharp {
                        catch (OverflowException) {
                                if (ec.ConstantCheckState) {
                                        Report.Error (221, loc, "Constant value `{0}' cannot be converted to a `{1}' (use `unchecked' syntax to override)",
-                                               this.GetValue (), TypeManager.CSharpName (target_type));
+                                               GetValue ().ToString (), TypeManager.CSharpName (target_type));
                                }
                                return null;
                        }