diff options
Diffstat (limited to 'object')
-rw-r--r-- | object/simple.c | 2 |
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; } |