Merge pull request #29797 from akien-mga/fix-warnings

Fix compilation warnings in JS and Windows builds
This commit is contained in:
Rémi Verschelde 2019-06-15 22:52:35 +02:00 committed by GitHub
commit 182b1fb9f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 44 additions and 39 deletions

View file

@ -68,7 +68,7 @@ void WebRTCDataChannelJS::_on_error() {
}
void WebRTCDataChannelJS::_on_message(uint8_t *p_data, uint32_t p_size, bool p_is_string) {
if (in_buffer.space_left() < p_size + 5) {
if (in_buffer.space_left() < (int)(p_size + 5)) {
ERR_EXPLAIN("Buffer full! Dropping data");
ERR_FAIL();
}