Mercurial > vim
comparison src/vim9class.c @ 31592:65a2bae18b27 v9.0.1128
patch 9.0.1128: build failure
Commit: https://github.com/vim/vim/commit/993dbc33a82a4ed877ee76265d6483b190e2feb1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 1 20:31:30 2023 +0000
patch 9.0.1128: build failure
Problem: Build failure.
Solution: Add type cast. Add missing error messages.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Jan 2023 21:45:03 +0100 |
parents | aee868b9229a |
children | 8e965e5a46c9 |
comparison
equal
deleted
inserted
replaced
31591:839ff2a1e7cb | 31592:65a2bae18b27 |
---|---|
825 return NULL; | 825 return NULL; |
826 | 826 |
827 size_t len = name_end - name; | 827 size_t len = name_end - name; |
828 typval_T tv; | 828 typval_T tv; |
829 tv.v_type = VAR_UNKNOWN; | 829 tv.v_type = VAR_UNKNOWN; |
830 if (eval_variable(name, len, 0, &tv, NULL, EVAL_VAR_NOAUTOLOAD) == FAIL) | 830 if (eval_variable(name, (int)len, |
831 0, &tv, NULL, EVAL_VAR_NOAUTOLOAD) == FAIL) | |
831 return NULL; | 832 return NULL; |
832 if (tv.v_type != VAR_CLASS && tv.v_type != VAR_OBJECT) | 833 if (tv.v_type != VAR_CLASS && tv.v_type != VAR_OBJECT) |
833 goto fail_after_eval; | 834 goto fail_after_eval; |
834 | 835 |
835 class_T *cl = tv.v_type == VAR_CLASS ? tv.vval.v_class | 836 class_T *cl = tv.v_type == VAR_CLASS ? tv.vval.v_class |