diff options
Diffstat (limited to 'src/cmd/tapefs/tapefs.h')
-rw-r--r-- | src/cmd/tapefs/tapefs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/tapefs/tapefs.h b/src/cmd/tapefs/tapefs.h index ae5e1844..bfe75937 100644 --- a/src/cmd/tapefs/tapefs.h +++ b/src/cmd/tapefs/tapefs.h @@ -3,6 +3,7 @@ #define g2byte(x) (((x)[1]<<8) + (x)[0]) /* little-endian */ #define g3byte(x) (((x)[2]<<16) + ((x)[1]<<8) + (x)[0]) #define g4byte(x) (((x)[3]<<24) + ((x)[2]<<16) + ((x)[1]<<8) + (x)[0]) +#define g8byte(x) (((vlong)g4byte(x)<<32) | (u32int)g4byte(x+4)) enum { @@ -42,7 +43,7 @@ struct Ram char *group; vlong addr; void *data; - long ndata; + vlong ndata; }; enum |