_ALIGN has to return u_long, since pointers don't fit into u_int in
64-bit mips.
This commit is contained in:
parent
f107b0cc55
commit
d14d3e0866
@ -44,10 +44,10 @@
|
||||
|
||||
/*
|
||||
* Round p (pointer or byte index) up to a correctly-aligned value for all
|
||||
* data types (int, long, ...). The result is u_int and must be cast to
|
||||
* data types (int, long, ...). The result is u_long and must be cast to
|
||||
* any desired pointer type.
|
||||
*/
|
||||
#define _ALIGNBYTES 7
|
||||
#define _ALIGN(p) (((u_int)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
|
||||
#define _ALIGN(p) (((u_long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
|
||||
|
||||
#endif /* !_MIPS_INCLUDE__ALIGN_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user