From 2ec725624d637789845478a90f799e9eeb54f9ee Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 11 Nov 2004 03:17:34 +0100 Subject: various fixes --- object/simple.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'object/simple.c') 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; } -- cgit v1.2.3