--- /n/sources/plan9/sys/src/9/port/sysfile.c Wed May 14 14:45:01 2014 +++ /sys/src/9/port/sysfile.c Fri Apr 29 00:00:00 2016 @@ -1233,7 +1233,7 @@ strncpy((char*)p, d->gid, 28); p += 28; q = d->qid.path & ~DMDIR; /* make sure doesn't accidentally look like directory */ - if(d->qid.type & QTDIR) /* this is the real test of a new directory */ + if((ulong)d->qid.type & QTDIR) /* this is the real test of a new directory */ q |= DMDIR; PBIT32(p, q); p += BIT32SZ;