summaryrefslogtreecommitdiff
path: root/object/simple.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-11 03:17:34 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-11 03:17:34 +0100
commit2ec725624d637789845478a90f799e9eeb54f9ee (patch)
treef305158bcd8331a2a656df7221a3acd01cd2724a /object/simple.c
parent69478b2d6028a295a32cf9b3c6e632263ef9b31b (diff)
downloadmupdf-2ec725624d637789845478a90f799e9eeb54f9ee.tar.xz
various fixes
Diffstat (limited to 'object/simple.c')
-rw-r--r--object/simple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/object/simple.c b/object/simple.c
index 953dcfa7..9f645c89 100644
--- a/object/simple.c
+++ b/object/simple.c
@@ -170,6 +170,8 @@ fz_toint(fz_obj *obj)
{
if (fz_isint(obj))
return obj->u.i;
+ if (fz_isreal(obj))
+ return obj->u.f;
return 0;
}