aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/tip/tip/tip.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/tip/tip/tip.h b/usr.bin/tip/tip/tip.h
index ab6b2c4cd9a0..6bf94521cdfd 100644
--- a/usr.bin/tip/tip/tip.h
+++ b/usr.bin/tip/tip/tip.h
@@ -153,16 +153,16 @@ typedef
*/
#define value(v) vtable[v].v_value
-#define lvalue(v) (long)vtable[v].v_value
+#define lvalue(v) (long)(intptr_t)vtable[v].v_value
-#define number(v) ((long)(v))
-#define boolean(v) ((short)(long)(v))
-#define character(v) ((char)(long)(v))
-#define address(v) ((long *)(v))
+#define number(v) ((long)(intptr_t)(v))
+#define boolean(v) ((short)(intptr_t)(v))
+#define character(v) ((char)(intptr_t)(v))
+#define address(v) ((long *)(v))
-#define setnumber(v,n) do { (v) = (char *)(long)(n); } while (0)
-#define setboolean(v,n) do { (v) = (char *)(long)(n); } while (0)
-#define setcharacter(v,n) do { (v) = (char *)(long)(n); } while (0)
+#define setnumber(v,n) do { (v) = (char *)(intptr_t)(n); } while (0)
+#define setboolean(v,n) do { (v) = (char *)(intptr_t)(n); } while (0)
+#define setcharacter(v,n) do { (v) = (char *)(intptr_t)(n); } while (0)
#define setaddress(v,n) do { (v) = (char *)(n); } while (0)
/*