diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-08 12:04:43 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-08 12:04:43 +0000 |
commit | 13dc7237ff5177b75fc6d5c1289eabc68cc7504b (patch) | |
tree | ebbcac2c91835576555d9e1c7130ad7bd1f2df0e /fitz/base_object.c | |
parent | d0724c562bb7ae6ad81eb89b064d59a73685f3a8 (diff) | |
parent | ba531f60532022e3419628e506462b6b84279478 (diff) | |
download | mupdf-13dc7237ff5177b75fc6d5c1289eabc68cc7504b.tar.xz |
Merge branch 'master' into context
Diffstat (limited to 'fitz/base_object.c')
-rw-r--r-- | fitz/base_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/base_object.c b/fitz/base_object.c index 2876f363..8c79e4c6 100644 --- a/fitz/base_object.c +++ b/fitz/base_object.c @@ -208,7 +208,7 @@ int fz_to_int(fz_obj *obj) if (fz_is_int(obj)) return obj->u.i; if (fz_is_real(obj)) - return obj->u.f; + return (int)(obj->u.f + 0.5f); /* No roundf in MSVC */ return 0; } |