diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-02 04:11:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-02 04:11:12 +0300 |
commit | 5400a3120742494281f6cce43545657432a08f25 (patch) | |
tree | be843b338f34ef2d6d474121031a7b57f82f677b /src/net/recvpacketdefine.h | |
parent | ecae89e342fc07daa816fe7de133968a51745040 (diff) | |
download | plus-5400a3120742494281f6cce43545657432a08f25.tar.gz plus-5400a3120742494281f6cce43545657432a08f25.tar.bz2 plus-5400a3120742494281f6cce43545657432a08f25.tar.xz plus-5400a3120742494281f6cce43545657432a08f25.zip |
Add some missing brackets in macroses.
Diffstat (limited to 'src/net/recvpacketdefine.h')
-rw-r--r-- | src/net/recvpacketdefine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h index e038d3639..3530efa1f 100644 --- a/src/net/recvpacketdefine.h +++ b/src/net/recvpacketdefine.h @@ -28,9 +28,9 @@ mPackets[pid].version = ver #define packet2(pname, pid, sz, pfunc, ver) \ - mPackets[pid + evolPacketOffset].name = #pname; \ - mPackets[pid + evolPacketOffset].len = sz; \ - mPackets[pid + evolPacketOffset].func = pfunc; \ - mPackets[pid + evolPacketOffset].version = ver + mPackets[(pid) + (evolPacketOffset)].name = #pname; \ + mPackets[(pid) + (evolPacketOffset)].len = sz; \ + mPackets[(pid) + (evolPacketOffset)].func = pfunc; \ + mPackets[(pid) + (evolPacketOffset)].version = ver #endif // NET_RECVPACKETDEFINE_H |