Guest User

Untitled

a guest
Jun 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. diff --git a/lib/roken/snprintf.c b/lib/roken/snprintf.c
  2. index 88e996c..022118e 100644
  3. --- a/lib/roken/snprintf.c
  4. +++ b/lib/roken/snprintf.c
  5. @@ -117,6 +117,10 @@ typedef unsigned long u_longest;
  6. typedef long longest;
  7. #endif
  8.  
  9. +#ifndef HAVE_UINTPTR_T
  10. +typedef u_longest uintptr_t;
  11. +#endif
  12. +
  13.  
  14.  
  15. static size_t
  16. @@ -498,7 +502,7 @@ xyzprintf (struct snprintf_state *state, const char *char_format, va_list ap)
  17. break;
  18. }
  19. case 'p' : {
  20. - u_longest arg = (u_longest)va_arg(ap, void*);
  21. + uintptr_t arg = (uintptr_t)va_arg(ap, void*);
  22.  
  23. len += append_number (state, arg, 0x10, "0123456789ABCDEF",
  24. width, prec, flags, 0);
Add Comment
Please, Sign In to add comment