summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-15 22:52:35 +0200
committerGitHub <noreply@github.com>2019-06-15 22:52:35 +0200
commit182b1fb9f16ce8523ce5cc28cd11b66f52dc09e4 (patch)
treeca6b24cfa5f1085209743e093b96b9b712940c01 /modules
parente21f808530b02a393a46d597afe89b4fbf886bb6 (diff)
parent68735d2a886bc2cf6b0a4300d1aa5ece952929ed (diff)
Merge pull request #29797 from akien-mga/fix-warnings
Fix compilation warnings in JS and Windows builds
Diffstat (limited to 'modules')
-rw-r--r--modules/webrtc/webrtc_data_channel_js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/webrtc/webrtc_data_channel_js.cpp b/modules/webrtc/webrtc_data_channel_js.cpp
index ce2fada634..069918cc9c 100644
--- a/modules/webrtc/webrtc_data_channel_js.cpp
+++ b/modules/webrtc/webrtc_data_channel_js.cpp
@@ -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();
}