Commit 740f52d
committed
Use uintptr_t reinterpret_cast for Metal textures
Include imiv_viewer.h and update texture pointer-to-ID conversions to use reinterpret_cast<uintptr_t> instead of static_cast<intptr_t>. This replaces signed intptr_t casts with an unsigned uintptr_t and a reinterpret_cast for both main and closeup Metal texture refs to ensure correct pointer-to-integer conversion and improve portability.1 parent de5ace1 commit 740f52d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
430 | | - | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
436 | 437 | | |
437 | 438 | | |
438 | 439 | | |
439 | | - | |
| 440 | + | |
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
| |||
0 commit comments