diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-02 18:24:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-02 18:24:06 +0200 |
| commit | f5013e327769df7168e5f6bd68aa6309d2b825de (patch) | |
| tree | f2ef4c28bcf6c65f287ae54839d19672418536d4 /modules/websocket/packet_buffer.h | |
| parent | 612a109b81320fcd2f06e5ddff71925d81aca509 (diff) | |
| parent | e7f22ebdcd36d620a21977392365661aa956527f (diff) | |
Merge pull request #26343 from marxin/warnings-all-add-most-of-Wextra
Enable most of -Wextra warnings for warnings=all.
Diffstat (limited to 'modules/websocket/packet_buffer.h')
| -rw-r--r-- | modules/websocket/packet_buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket/packet_buffer.h b/modules/websocket/packet_buffer.h index 47786a87a6..057fecfb56 100644 --- a/modules/websocket/packet_buffer.h +++ b/modules/websocket/packet_buffer.h @@ -59,7 +59,7 @@ public: ERR_FAIL_V(ERR_OUT_OF_MEMORY); } #else - ERR_FAIL_COND_V(p_payload && _payload.space_left() < p_size, ERR_OUT_OF_MEMORY); + ERR_FAIL_COND_V(p_payload && (uint32_t)_payload.space_left() < p_size, ERR_OUT_OF_MEMORY); ERR_FAIL_COND_V(p_info && _packets.space_left() < 1, ERR_OUT_OF_MEMORY); #endif |