Fix signed and unsigned comparisons
The first in my quest to make Godot 3.x compile with -Werror on GCC7
This commit is contained in:
parent
51ae90d789
commit
f9467ec1ea
34 changed files with 105 additions and 105 deletions
|
|
@ -244,14 +244,14 @@ FileAccessNetworkClient::~FileAccessNetworkClient() {
|
|||
memdelete(sem);
|
||||
}
|
||||
|
||||
void FileAccessNetwork::_set_block(size_t p_offset, const Vector<uint8_t> &p_block) {
|
||||
void FileAccessNetwork::_set_block(int p_offset, const Vector<uint8_t> &p_block) {
|
||||
|
||||
int page = p_offset / page_size;
|
||||
ERR_FAIL_INDEX(page, pages.size());
|
||||
if (page < pages.size() - 1) {
|
||||
ERR_FAIL_COND(p_block.size() != page_size);
|
||||
} else {
|
||||
ERR_FAIL_COND((p_block.size() != (total_size % page_size)));
|
||||
ERR_FAIL_COND((p_block.size() != (int)(total_size % page_size)));
|
||||
}
|
||||
|
||||
buffer_mutex->lock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue