git: 9front

Download patch

ref: 388f650e128063d891c086eea389b5db0c733339
parent: 61a10b4c639c4d836e3e738d0e97fc2c23bd3b59
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Nov 26 16:36:51 EST 2018

upas/fs: avoid switch on vlong breaking build (thanks k0ga)

--- a/sys/src/cmd/upas/fs/dat.h
+++ b/sys/src/cmd/upas/fs/dat.h
@@ -305,7 +305,7 @@
 };
 
 #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;
--