Merge pull request #11026 from hpvb/fix-assign-in-if

Remove assignment and declarations in if statements
This commit is contained in:
Rémi Verschelde 2017-09-12 11:57:49 +02:00 committed by GitHub
commit cf941fdc35
17 changed files with 87 additions and 48 deletions

View file

@ -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;