Commit graph

3 commits

Author SHA1 Message Date
df8a1fcc25 os.c: Add explicit casts
A Unix file descriptor number is stored in the
"generic callback argument" `void **priv`. However, on LP64
systems like x86_64 linux, `int` and `void **` have different size.
This leads to a compiler diagnostic:
```
os.c: In function ‘os_write’:
os.c:192:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  192 |   int fd = (int) *priv;
      |            ^
```
Adding an additional cast via `intptr_t` resolves the compiler
diagnostics.
2025-08-18 08:38:15 -05:00
Pablo Lezaeta Reyes
45b8c14fd1
Add support for files larger than 2 GB, like any dvd image
Signed-off-by: Pablo Lezaeta Reyes <prflr88@gmail.com>
2017-09-27 00:18:10 -03:00
Pablo Lezaeta Reyes
60d1b2c293
Initial import from https://www.mars.org/home/rob/proj/hfs/
Signed-off-by: Pablo Lezaeta Reyes <prflr88@gmail.com>
2017-09-27 00:10:03 -03:00