Commit Diff


commit - c291b2ec819db0e168bbd1f667e313e3588c49be
commit + c9ee9e62f63bb875d2e49c455cbba97fc471b814
blob - 264bb8d5b7f0539fb2174432831528985e921a52
blob + 6900b47cefa1108972c180c0becd49d18b97ebee
--- src/cmd/rio/manage.c
+++ src/cmd/rio/manage.c
@@ -5,6 +5,7 @@
 /* Copyright (c) 1994-1996 David Hogan, see README for licence details */
 #include <stdio.h>
 #include <stdlib.h>
+#include <inttypes.h>
 #include <X11/X.h>
 #include <X11/Xos.h>
 #include <X11/Xlib.h>
@@ -471,7 +472,7 @@ get1prop(Window w, Atom a, Atom type)
 		return 0;
 	x = *p;
 	XFree((void*) p);
-	return (int)(uintptr)x;
+	return (int)(uintptr_t)x;
 }
 
 Window