Mercurial > vim
view src/typemap @ 16762:97ad98d95214 v8.1.1383
patch 8.1.1383: warning for size_t/int mixup
commit https://github.com/vim/vim/commit/d33a764123a8aedb20cd84aeff3b94810ee67c4c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 24 17:56:14 2019 +0200
patch 8.1.1383: warning for size_t/int mixup
Problem: Warning for size_t/int mixup.
Solution: Change type. (Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 May 2019 18:00:06 +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}\")