it's a. uniform b. matches the types on the C side c. still a bit scary but at least the failure whan facing "invalid" image formats is morebetter.
Unified · Split
| @@ -965,7 +965,7 @@ static void layout (void) · 964 unmodified lines | |||
| 965 | int boundw = x1 - x0; | 965 | int boundw = x1 - x0; |
| 966 | int boundh = y1 - y0; | 966 | int boundh = y1 - y0; |
| 967 | 967 | ||
| 968 | printd ("pdim %d %d %d %d", p->pageno, boundw, boundh, p->left); | 968 | printd ("pdim %u %d %d %d", p->pageno, boundw, boundh, p->left); |
| 969 | } while (p-- != state.pagedims); | 969 | } while (p-- != state.pagedims); |
| 970 | } | 970 | } |
| 971 | 971 | ||
| @@ -1315,7 +1315,7 @@ let act cmds = · 1314 unmodified lines | |||
| 1315 | 1315 | ||
| 1316 | | "pdim", args -> | 1316 | | "pdim", args -> |
| 1317 | let (n, w, h, _) as pdim = | 1317 | let (n, w, h, _) as pdim = |
| 1318 | scan args "%u %u %u %u" (fun n w h x -> n, w, h, x) | 1318 | scan args "%u %d %d %d" (fun n w h x -> n, w, h, x) |
| 1319 | in | 1319 | in |
| 1320 | let pdim = | 1320 | let pdim = |
| 1321 | match conf.fitmodel with | 1321 | match conf.fitmodel with |