Mercurial > vim
view src/typemap @ 29425:722a50132db9 v9.0.0054
patch 9.0.0054: compiler warning for size_t to int conversion
Commit: https://github.com/vim/vim/commit/c7bd2f08e531f08723cdc677212a3633d11c9a97
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 15 20:45:20 2022 +0100
patch 9.0.0054: compiler warning for size_t to int conversion
Problem: Compiler warning for size_t to int conversion.
Solution: Add type cast. (Mike Williams, closes https://github.com/vim/vim/issues/10741)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 15 Jul 2022 22: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}\")