History

Harmonize pdim format

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.

malc committed 6 years ago

Commit 7bd0abf1 parent 8e42c792 files · +2 −2Browse files

Unified · Split

2 files
  1. link.c +1 −1
  2. main.ml +1 −1
link.c+1−1
@@ -965,7 +965,7 @@ static void layout (void) · 964 unmodified lines
965965 int boundw = x1 - x0;
966966 int boundh = y1 - y0;
967967
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);
969969 } while (p-- != state.pagedims);
970970 }
971971
main.ml+1−1
@@ -1315,7 +1315,7 @@ let act cmds = · 1314 unmodified lines
13151315
13161316 | "pdim", args ->
13171317 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)
13191319 in
13201320 let pdim =
13211321 match conf.fitmodel with

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t