Mercurial > vim
view src/typemap @ 29440:8d9400c64654 v9.0.0062
patch 9.0.0062: compiler warnings for signed/unsigned char
Commit: https://github.com/vim/vim/commit/5ac50de83f1b4136f903c51a1d4e7d84a26c2271
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 23 09:22:47 2022 +0100
patch 9.0.0062: compiler warnings for signed/unsigned char
Problem: Compiler warnings for signed/unsigned char.
Solution: Add type casts. (John Marriott)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Jul 2022 10:30:02 +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}\")