shithub: riscv

Download patch

ref: 243c25fd8f397ff37c1ad597524cccd23db46d1c
parent: 3484b7c23acf79ed99fd0e18b03a4d402e3feda6
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;