Mercurial > vim
comparison src/fileio.c @ 13762:9de2b25932eb v8.0.1753
patch 8.0.1753: various warnings from a static analyser
commit https://github.com/vim/vim/commit/1c17ffa4611f4efe68c61f7cdd9ed692a866ba75
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 24 15:19:04 2018 +0200
patch 8.0.1753: various warnings from a static analyser
Problem: Various warnings from a static analyser
Solution: Add type casts, remove unneeded conditions. (Christian Brabandt,
closes #2770)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 15:30:08 +0200 |
parents | 8a3e9d1e8cf9 |
children | 8a35543f5f97 |
comparison
equal
deleted
inserted
replaced
13761:ddd0ad66922b | 13762:9de2b25932eb |
---|---|
1390 decrypted_size = crypt_decode_alloc( | 1390 decrypted_size = crypt_decode_alloc( |
1391 curbuf->b_cryptstate, ptr, size, &newptr); | 1391 curbuf->b_cryptstate, ptr, size, &newptr); |
1392 | 1392 |
1393 /* If the crypt layer is buffering, not producing | 1393 /* If the crypt layer is buffering, not producing |
1394 * anything yet, need to read more. */ | 1394 * anything yet, need to read more. */ |
1395 if (size > 0 && decrypted_size == 0) | 1395 if (decrypted_size == 0) |
1396 continue; | 1396 continue; |
1397 | 1397 |
1398 if (linerest == 0) | 1398 if (linerest == 0) |
1399 { | 1399 { |
1400 /* Simple case: reuse returned buffer (may be | 1400 /* Simple case: reuse returned buffer (may be |