Mercurial > vim
view src/typemap @ 16539:563163ec0244 v8.1.1273
patch 8.1.1273: compiler warning in direct write code
commit https://github.com/vim/vim/commit/f653a6bcff48161b56eeb3a584011aab6665f1e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 5 13:20:02 2019 +0200
patch 8.1.1273: compiler warning in direct write code
Problem: Compiler warning in direct write code.
Solution: Add a type cast.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 May 2019 13:30:05 +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}\")