view src/typemap @ 13505:a784ef72b617 v8.0.1626

patch 8.0.1626: compiler warning for possible loss of data commit https://github.com/vim/vim/commit/b571c63d481b065dc22465300e41a4b8cff66120 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 21 22:27:59 2018 +0100 patch 8.0.1626: compiler warning for possible loss of data Problem: Compiler warning for possible loss of data. Solution: Use size_t instead of int. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Wed, 21 Mar 2018 22:30:06 +0100
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}\")