Commit 94c0924
committed
ft2font: Explicitly cast dimensions when creating Python buffer
On WASM, which is wholly 32-bit, casting unsigned int to signed long is
a narrowing conversion, which it seems to treat as an error. The Agg
buffer cannot be over `(1<<23)` in width or height, so this cast is
safe even with the smaller sizes.1 parent 522c318 commit 94c0924
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
| 253 | + | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
0 commit comments