Mercurial > vim
view src/typemap @ 20675:02f648f1c8fa v8.2.0891
patch 8.2.0891: clang warns for invalid conversion
Commit: https://github.com/vim/vim/commit/cc836556d962058d8b8fbc45c400b7e9d643976a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 3 10:04:49 2020 +0200
patch 8.2.0891: clang warns for invalid conversion
Problem: Clang warns for invalid conversion.
Solution: Use zero instead of INVALCOLOR.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 03 Jun 2020 10:15:03 +0200 |
parents | dec4338a7da2 |
children |
line wrap: on
line source
TYPEMAP VIWIN T_VIOBJNOMUNGE VIBUF T_VIOBJNOMUNGE INPUT T_VIOBJNOMUNGE if (sv_isa($arg, \"${ntype}\")) { IV tmp = SvIV((SV*)SvRV($arg)); $var = INT2PTR($type, tmp); if (!tmp) croak(\"$ntype no longer exists\"); } else croak(\"$var is not of type ${ntype}\")