fixed 64 bit compile problem
[swftools.git] / src / pdf2swf.c
index 196c2e6..5422e7d 100644 (file)
@@ -845,8 +845,8 @@ int main(int argn, char *argv[])
        if(result->save(result, outputname) < 0) {
            exit(1);
        }
-       int width = (int)result->get(result, "width");
-       int height = (int)result->get(result, "height");
+       int width = (int)(ptroff_t)result->get(result, "width");
+       int height = (int)(ptroff_t)result->get(result, "height");
        result->destroy(result);result=0;
 
        if(preloader || viewer) {