=================================================================== RCS file: /cvs/mandoc/out.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -p -r1.48 -r1.49 --- mandoc/out.c 2014/04/20 16:46:05 1.48 +++ mandoc/out.c 2014/08/01 19:25:52 1.49 @@ -1,4 +1,4 @@ -/* $Id: out.c,v 1.48 2014/04/20 16:46:05 schwarze Exp $ */ +/* $Id: out.c,v 1.49 2014/08/01 19:25:52 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -128,8 +128,8 @@ a2roffsu(const char *src, struct roffsu *dst, enum rof } /* FIXME: do this in the caller. */ - if ((dst->scale = atof(buf)) < 0) - dst->scale = 0; + if ((dst->scale = atof(buf)) < 0.0) + dst->scale = 0.0; dst->unit = unit; return(1); }