[commit: ghc] master: Add a cast to new code in hp2ps (9785bb7)

git at git.haskell.org git at git.haskell.org
Tue Jul 1 02:15:07 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/9785bb7cb96ecee409a40fb413035758dd278db7/ghc

>---------------------------------------------------------------

commit 9785bb7cb96ecee409a40fb413035758dd278db7
Author: Reid Barton <rwbarton at gmail.com>
Date:   Mon Jun 30 22:11:03 2014 -0400

    Add a cast to new code in hp2ps
    
    For parallelism with the existing code. I don't think it should
    make any difference.


>---------------------------------------------------------------

9785bb7cb96ecee409a40fb413035758dd278db7
 utils/hp2ps/HpFile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/hp2ps/HpFile.c b/utils/hp2ps/HpFile.c
index f2a01cd..9459247 100644
--- a/utils/hp2ps/HpFile.c
+++ b/utils/hp2ps/HpFile.c
@@ -363,7 +363,7 @@ GetNumber(FILE *infp)
            If this is an identifier line, the value might exceed
            the size of 'int', and we are going to convert it to
            a floatish anyways. */
-        thefloatish = atof(numberstring);
+        thefloatish = (floatish) atof(numberstring);
         return INTEGER_TOK;
     }
 }



More information about the ghc-commits mailing list