diff options
Diffstat (limited to 'fitz')
-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 64fafad0..8e8ac313 100644 --- a/fitz/base_object.c +++ b/fitz/base_object.c @@ -207,7 +207,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; } |