Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System/Double.cs')
-rw-r--r--mcs/class/corlib/System/Double.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/class/corlib/System/Double.cs b/mcs/class/corlib/System/Double.cs
index a52c482792a..47f0d406531 100644
--- a/mcs/class/corlib/System/Double.cs
+++ b/mcs/class/corlib/System/Double.cs
@@ -207,6 +207,10 @@ namespace System {
for (; sidx < len; sidx++){
c = s [sidx];
+ if (c == '\0') {
+ sidx = len;
+ continue;
+ }
switch (state){
case State_AllowSign:
if ((style & NumberStyles.AllowLeadingSign) != 0){