comparison src/typval.c @ 21425:a6c316ef161a v8.2.1263

patch 8.2.1263: Vim9: comperators use 'ignorecase' in Vim9 script Commit: https://github.com/vim/vim/commit/c71f36a889897aca4ac2ad3828926e3801728336 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 21 21:31:00 2020 +0200 patch 8.2.1263: Vim9: comperators use 'ignorecase' in Vim9 script Problem: Vim9: comperators use 'ignorecase' in Vim9 script. Solution: Ignore 'ignorecase'. Use true and false instead of 1 and 0. (closes #6497)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Jul 2020 21:45:06 +0200
parents 4d844a65183d
children d8422de73113
comparison
equal deleted inserted replaced
21424:8835316c02ba 21425:a6c316ef161a
788 788
789 default: break; // avoid gcc warning 789 default: break; // avoid gcc warning
790 } 790 }
791 } 791 }
792 clear_tv(typ1); 792 clear_tv(typ1);
793 typ1->v_type = VAR_NUMBER; 793 if (in_vim9script())
794 typ1->vval.v_number = n1; 794 {
795 typ1->v_type = VAR_BOOL;
796 typ1->vval.v_number = n1 ? VVAL_TRUE : VVAL_FALSE;
797 }
798 else
799 {
800 typ1->v_type = VAR_NUMBER;
801 typ1->vval.v_number = n1;
802 }
795 803
796 return OK; 804 return OK;
797 } 805 }
798 806
799 char_u * 807 char_u *