Skip to content

Commit

Permalink
* get.c (stringify_double): Remove trailing '.' if it has 'e'.
Browse files Browse the repository at this point in the history
svn path=/trunk/mono/; revision=56068


Commit migrated from mono/mono@50f30f2
  • Loading branch information
radical committed Jan 25, 2006
1 parent 0242fd9 commit 67a8179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/dis/get.c
Original file line number Diff line number Diff line change
Expand Up @@ -2152,7 +2152,7 @@ stringify_double (double r)

ret = g_strdup_printf ("%.17g.", r);
ptr = ret + strlen (ret) - 1;
if (strchr (ret, '.') != ptr)
if (strchr (ret, '.') != ptr || strchr (ret, 'e'))
*ptr = '\0';

return ret;
Expand Down

0 comments on commit 67a8179

Please sign in to comment.