aboutsummaryrefslogtreecommitdiff
path: root/src/libip
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-03-22 10:06:26 -0700
committerRuss Cox <rsc@swtch.com>2008-03-22 10:06:26 -0700
commit0f815464fcf8839a5053be8d9aaf13326dde24b3 (patch)
treee5c42956830b7890908f407e6da129bd468ac4a4 /src/libip
parent29770b4f21c6d7147b5bfede67b0d28cd3028b57 (diff)
downloadplan9port-0f815464fcf8839a5053be8d9aaf13326dde24b3.tar.gz
plan9port-0f815464fcf8839a5053be8d9aaf13326dde24b3.tar.bz2
plan9port-0f815464fcf8839a5053be8d9aaf13326dde24b3.zip
libip: fix 64-bit problem in nhgetv (William Josephson)
Diffstat (limited to 'src/libip')
-rw-r--r--src/libip/bo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libip/bo.c b/src/libip/bo.c
index 95fc5f8d..de3b4e04 100644
--- a/src/libip/bo.c
+++ b/src/libip/bo.c
@@ -51,10 +51,10 @@ nhgetv(void *p)
v |= (uvlong)a[1]<<48;
v |= (uvlong)a[2]<<40;
v |= (uvlong)a[3]<<32;
- v |= a[4]<<24;
- v |= a[5]<<16;
- v |= a[6]<<8;
- v |= a[7]<<0;
+ v |= (uvlong)a[4]<<24;
+ v |= (uvlong)a[5]<<16;
+ v |= (uvlong)a[6]<<8;
+ v |= (uvlong)a[7]<<0;
return v;
}