view src/typemap @ 15508:69207f77754a v8.1.0762

patch 8.1.0762: compiler warning commit https://github.com/vim/vim/commit/e40742526e6ea272c64ca393d7364e4023f4122c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 17 14:31:14 2019 +0100 patch 8.1.0762: compiler warning Problem: Compiler warning. Solution: Add type cast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Jan 2019 14:45:11 +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}\")