Add 64-bit versions of core power of 2 functions

This commit is contained in:
Aaron Franke 2025-05-19 09:53:53 -07:00
parent 64b09905c7
commit f6f1df7d73
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
25 changed files with 161 additions and 124 deletions

View file

@ -61,7 +61,7 @@ void WebRTCDataChannel::_bind_methods() {
}
WebRTCDataChannel::WebRTCDataChannel() {
_in_buffer_shift = nearest_shift((int)GLOBAL_GET("network/limits/webrtc/max_channel_in_buffer_kb") - 1) + 10;
_in_buffer_shift = nearest_shift(uint32_t((int)GLOBAL_GET("network/limits/webrtc/max_channel_in_buffer_kb") - 1)) + (uint32_t)10;
}
WebRTCDataChannel::~WebRTCDataChannel() {