Skip to content

Commit

Permalink
lib: Fix documentation on POINTER_CAST
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and sirainen committed Aug 30, 2018
1 parent 08dc431 commit 0ad7ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/macros.h
Expand Up @@ -36,7 +36,7 @@
#define I_MAX(a, b) (((a) > (b)) ? (a) : (b))

/* make it easier to cast from/to pointers. assumes that
sizeof(size_t) == sizeof(void *) and they're both the largest datatypes
sizeof(uintptr_t) == sizeof(void *) and they're both the largest datatypes
that are allowed to be used. so, long long isn't safe with these. */
#define POINTER_CAST(i) \
((void *) (((uintptr_t)NULL) + (i)))
Expand Down

0 comments on commit 0ad7ac2

Please sign in to comment.