Merge pull request #11026 from hpvb/fix-assign-in-if
Remove assignment and declarations in if statements
This commit is contained in:
commit
cf941fdc35
17 changed files with 87 additions and 48 deletions
|
|
@ -159,7 +159,8 @@ void FileAccessWindows::seek_end(int64_t p_position) {
|
|||
size_t FileAccessWindows::get_pos() const {
|
||||
|
||||
size_t aux_position = 0;
|
||||
if (!(aux_position = ftell(f))) {
|
||||
aux_position = ftell(f);
|
||||
if (!aux_position) {
|
||||
check_errors();
|
||||
};
|
||||
return aux_position;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue