Skip to content

Commit 7cef9c7

Browse files
committed
types: fix SSIZE_MAX not having the intended type
1 parent 08d50e5 commit 7cef9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libctru/include/3ds/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/// would be nice if newlib had this already
1515
#ifndef SSIZE_MAX
1616
#ifdef SIZE_MAX
17-
#define SSIZE_MAX ((SIZE_MAX) >> 1)
17+
#define SSIZE_MAX ((ssize_t)((SIZE_MAX) >> 1))
1818
#endif
1919
#endif
2020

0 commit comments

Comments
 (0)