diff options
author | Russ Cox <rsc@swtch.com> | 2009-04-30 11:35:25 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-04-30 11:35:25 -0700 |
commit | 347aa646fc86fca426d5f9de95884bb68f133b9a (patch) | |
tree | 122e1371d2e711057e4e69f3a61b223ff234ce75 /src/cmd/scat/dssread.c | |
parent | 122fda5913bc6bf993bbc73202a55e4cbd7f9c4d (diff) | |
download | plan9port-347aa646fc86fca426d5f9de95884bb68f133b9a.tar.gz plan9port-347aa646fc86fca426d5f9de95884bb68f133b9a.tar.bz2 plan9port-347aa646fc86fca426d5f9de95884bb68f133b9a.zip |
scat: make 64-bit safe
Diffstat (limited to 'src/cmd/scat/dssread.c')
-rw-r--r-- | src/cmd/scat/dssread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/scat/dssread.c b/src/cmd/scat/dssread.c index 06f0135e..bd72132a 100644 --- a/src/cmd/scat/dssread.c +++ b/src/cmd/scat/dssread.c @@ -4,7 +4,7 @@ #include "sky.h" static void dodecode(Biobuf*, Pix*, int, int, uchar*); -static long getlong(uchar*); +static int32 getlong(uchar*); int debug; Img* @@ -107,7 +107,7 @@ dodecode(Biobuf *infile, Pix *a, int nx, int ny, uchar *nbitplanes) } static -long getlong(uchar *p) +int32 getlong(uchar *p) { return (p[0]<<24) | (p[1]<<16) | (p[2]<<8) | p[3]; } |