BFS: Give endian macros parentheses.
Some things that call these macros put expressions in them; to avoid operator precedence problems we should put them in parens. Change-Id: I57335ffb190c484778c4bc8075d5ca3597f1e7e5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8184 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
0ef833e5e8
commit
544336415d
@@ -22,12 +22,12 @@
|
||||
|| defined(BFS_BIG_ENDIAN_ONLY) && B_HOST_IS_BENDIAN
|
||||
/* host is BFS endian */
|
||||
# define BFS_NATIVE_ENDIAN
|
||||
# define BFS_ENDIAN_TO_HOST_INT16(value) value
|
||||
# define BFS_ENDIAN_TO_HOST_INT32(value) value
|
||||
# define BFS_ENDIAN_TO_HOST_INT64(value) value
|
||||
# define HOST_ENDIAN_TO_BFS_INT16(value) value
|
||||
# define HOST_ENDIAN_TO_BFS_INT32(value) value
|
||||
# define HOST_ENDIAN_TO_BFS_INT64(value) value
|
||||
# define BFS_ENDIAN_TO_HOST_INT16(value) (value)
|
||||
# define BFS_ENDIAN_TO_HOST_INT32(value) (value)
|
||||
# define BFS_ENDIAN_TO_HOST_INT64(value) (value)
|
||||
# define HOST_ENDIAN_TO_BFS_INT16(value) (value)
|
||||
# define HOST_ENDIAN_TO_BFS_INT32(value) (value)
|
||||
# define HOST_ENDIAN_TO_BFS_INT64(value) (value)
|
||||
#elif defined(BFS_LITTLE_ENDIAN_ONLY) && B_HOST_IS_BENDIAN \
|
||||
|| defined(BFS_BIG_ENDIAN_ONLY) && B_HOST_IS_LENDIAN
|
||||
/* host is big endian, BFS is little endian or vice versa */
|
||||
|
||||
Reference in New Issue
Block a user