summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-11-26 21:36:51 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-11-26 21:36:51 +0100
commit243c25fd8f397ff37c1ad597524cccd23db46d1c (patch)
tree4020340ce2c1ec7b4fe1511f6b04529cac3631c1
parent3484b7c23acf79ed99fd0e18b03a4d402e3feda6 (diff)
upas/fs: avoid switch on vlong breaking build (thanks k0ga)
-rw-r--r--sys/src/cmd/upas/fs/dat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/upas/fs/dat.h b/sys/src/cmd/upas/fs/dat.h
index 653232383..67f11bb98 100644
--- a/sys/src/cmd/upas/fs/dat.h
+++ b/sys/src/cmd/upas/fs/dat.h
@@ -305,7 +305,7 @@ enum {
};
#define PATH(id, f) (((uvlong)(id)<<10) | (f))
-#define FILE(p) ((p) & 0x3ff)
+#define FILE(p) ((int) (p) & 0x3ff)
/* hash table to aid in name lookup, all files have an entry */
typedef struct Hash Hash;