diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-12-23 22:43:29 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-12-23 22:43:29 +0100 |
commit | 1e0b65c8bfb2f1b6fbc189795b73a6e89b05dc75 (patch) | |
tree | 5e32d273de43cfc015c8efcd306e1bcdb28e20e4 /sys/src/cmd/dossrv/dat.h | |
parent | d843bc8e22a7db269867fdc702bd0043e4f499a0 (diff) |
dossrv: make GLONG() return ulong, handle getsect() error in dostat()
Diffstat (limited to 'sys/src/cmd/dossrv/dat.h')
-rw-r--r-- | sys/src/cmd/dossrv/dat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/dossrv/dat.h b/sys/src/cmd/dossrv/dat.h index 0347f0900..80af491b0 100644 --- a/sys/src/cmd/dossrv/dat.h +++ b/sys/src/cmd/dossrv/dat.h @@ -172,8 +172,8 @@ enum DARCH = 0x20, }; -#define GSHORT(p) (((p)[0])|(p)[1]<<8) -#define GLONG(p) (((long)(p)[0])|(p)[1]<<8|(p)[2]<<16|(p)[3]<<24) +#define GSHORT(p) (((ushort)(p)[0])|(ushort)(p)[1]<<8) +#define GLONG(p) (((ulong)(p)[0])|(ulong)(p)[1]<<8|(ulong)(p)[2]<<16|(ulong)(p)[3]<<24) #define PSHORT(p,v) ((p)[0]=(v),(p)[1]=(v)>>8) #define PLONG(p,v) ((p)[0]=(v),(p)[1]=(v)>>8,(p)[2]=(v)>>16,(p)[3]=(v)>>24) |