diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-05-09 09:53:40 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-05-09 15:54:04 +0200 |
commit | 5f633580189fa48f5b650d3c63c585521bb833a9 (patch) | |
tree | fd74ca15704156e9c62a881af7ffc67c3400bebd /src/cairo-output-stream.c | |
parent | 7dce5360424a98e4100bd78e768c220959633145 (diff) | |
download | cairo-5f633580189fa48f5b650d3c63c585521bb833a9.tar.gz |
[src/check-doc-syntax.sh] Fix some bugs in the check and fix errors found
Diffstat (limited to 'src/cairo-output-stream.c')
-rw-r--r-- | src/cairo-output-stream.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c index 351585e75..e2fffb28e 100644 --- a/src/cairo-output-stream.c +++ b/src/cairo-output-stream.c @@ -49,7 +49,7 @@ */ #define SIGNIFICANT_DIGITS_AFTER_DECIMAL 6 -/* Numbers printed with %g are assumed to only have CAIRO_FIXED_FRAC_BITS +/* Numbers printed with %g are assumed to only have %CAIRO_FIXED_FRAC_BITS * bits of precision available after the decimal point. * * FIXED_POINT_DECIMAL_DIGITS specifies the minimum number of decimal @@ -58,10 +58,12 @@ * * The conversion is: * + * <programlisting> * FIXED_POINT_DECIMAL_DIGITS = ceil( CAIRO_FIXED_FRAC_BITS * ln(2)/ln(10) ) + * </programlisting> * * We can replace ceil(x) with (int)(x+1) since x will never be an - * integer for any likely value of CAIRO_FIXED_FRAC_BITS. + * integer for any likely value of %CAIRO_FIXED_FRAC_BITS. */ #define FIXED_POINT_DECIMAL_DIGITS ((int)(CAIRO_FIXED_FRAC_BITS*0.301029996 + 1)) |