comparison src/os_unix.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 260256caac38
children 5f6c61a71c02
comparison
equal deleted inserted replaced
13761:ddd0ad66922b 13762:9de2b25932eb
439 { 439 {
440 if (wtime >= 0) 440 if (wtime >= 0)
441 /* no character available within "wtime" */ 441 /* no character available within "wtime" */
442 return 0; 442 return 0;
443 443
444 if (wtime < 0) 444 else
445 { 445 {
446 /* no character available within 'updatetime' */ 446 /* no character available within 'updatetime' */
447 did_start_blocking = TRUE; 447 did_start_blocking = TRUE;
448 if (trigger_cursorhold() && maxlen >= 3 448 if (trigger_cursorhold() && maxlen >= 3
449 && !typebuf_changed(tb_change_cnt)) 449 && !typebuf_changed(tb_change_cnt))