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;