mirror of
https://github.com/hufrea/byedpi.git
synced 2025-03-14 12:58:48 +03:00
fix shtona macros
This commit is contained in:
parent
4ca7fab3dd
commit
0e155f6de7
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@
|
|||
(uint16_t)((data[i] << 8) + (uint8_t)data[i + 1])
|
||||
|
||||
#define SHTONA(data, i, x) \
|
||||
data[i] = (uint8_t)(x >> 8); \
|
||||
data[i + 1] = x & 0xff;
|
||||
data[i] = (uint8_t)((x) >> 8); \
|
||||
data[i + 1] = ((x) & 0xff)
|
||||
|
||||
|
||||
char tls_data[517] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue