view src/typemap @ 29477:6387e75a4a6b v9.0.0080

patch 9.0.0080: compiler warning for size_t to int conversion Commit: https://github.com/vim/vim/commit/0494789ecee9e2a973f48426f7a69fb96378fa8a Author: Mike Williams <mikew@globalgraphics.com> Date: Tue Jul 26 16:03:42 2022 +0100 patch 9.0.0080: compiler warning for size_t to int conversion Problem: Compiler warning for size_t to int conversion. Solution: Add type casts. (Mike Williams, closes https://github.com/vim/vim/issues/10795)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jul 2022 17: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}\")