Use correct types in [sf]uword32.

This commit is contained in:
Benno Rice 2002-05-27 10:50:47 +00:00
parent 2061e87111
commit 7ed61facaa
2 changed files with 8 additions and 8 deletions

View File

@ -265,9 +265,9 @@ suword(void *addr, long word)
}
int
suword32(void *addr, u_int32_t word)
suword32(void *addr, int32_t word)
{
return (suword(addr, word));
return (suword(addr, (long)word));
}
@ -322,8 +322,8 @@ fuword(const void *addr)
return (val);
}
u_int32_t
int32_t
fuword32(const void *addr)
{
return (fuword(addr));
return ((int32_t)fuword(addr));
}

View File

@ -265,9 +265,9 @@ suword(void *addr, long word)
}
int
suword32(void *addr, u_int32_t word)
suword32(void *addr, int32_t word)
{
return (suword(addr, word));
return (suword(addr, (long)word));
}
@ -322,8 +322,8 @@ fuword(const void *addr)
return (val);
}
u_int32_t
int32_t
fuword32(const void *addr)
{
return (fuword(addr));
return ((int32_t)fuword(addr));
}