mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
Fix error: format specifies type 'unsigned short' but the argument has type 'int'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
5948dc8c8f
commit
3b060bad34
@@ -103,7 +103,7 @@
|
||||
/* GET 16-bit data: source in network order */
|
||||
|
||||
#define GETUINT16(ptr,index) \
|
||||
((((uint16_t)((ptr)[index])) << 8) | ((uint16_t)(((ptr)[(index) + 1]))))
|
||||
((uint16_t)((((uint16_t)((ptr)[index])) << 8) | ((uint16_t)(((ptr)[(index) + 1])))))
|
||||
|
||||
/* PUT 16-bit data: source in host order, result in network order */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user