~ubuntu-branches/debian/squeeze/ghostscript/squeeze

« back to all changes in this revision

Viewing changes to src/zdouble.c

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2009-01-04 12:09:59 UTC
  • mfrom: (16.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090104120959-m9lbagj775ucg0h3
Tags: 8.63.dfsg.1-2
libgs-dev: put versioned dependency on libgs8 - closes: #510691

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: zdouble.c 8548 2008-02-26 07:12:49Z alexcher $ */
 
14
/* $Id: zdouble.c 8892 2008-07-28 19:41:25Z giles $ */
15
15
/* Double-precision floating point arithmetic operators */
16
16
#include "math_.h"
17
17
#include "memory_.h"
405
405
        return code;
406
406
    check_write_type(*op, t_string);
407
407
    sprintf(str, "%f", 1.5);
408
 
    dot = buf[1]; /* locale-dependent */
 
408
    dot = str[1]; /* locale-dependent */
409
409
    /*
410
410
     * To get fully accurate output results for IEEE double-
411
411
     * precision floats (53 bits of mantissa), the ANSI