netcode_replay_protection_t::received_packet[N] is uint64_t, and it
was being compared to a signed literal (0xFFFFFFFFFFFFFFFFLL),
causing the following warning:
warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long long') and 'long long' [-Wsign-compare]
if ( replay_protection->received_packet[index] == 0xFFFFFFFFFFFFFFFFLL )
This switches the literal for UINT64_MAX, which is a constant for the
unsigned version of the same literal.
netcode_replay_protection_t::received_packet[N]
is uint64_t, and it was being compared to a signed literal (0xFFFFFFFFFFFFFFFFLL
), causing the following warning:This switches the literal for UINT64_MAX, which is a constant for the unsigned version of the same literal.