view src/typemap @ 28964:8973f2f00872 v8.2.5004

patch 8.2.5004: right shift on negative number does not work as documented Commit: https://github.com/vim/vim/commit/338bf58eba758585ffef3fdfdba7d48477aacb7c Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 22 20:16:32 2022 +0100 patch 8.2.5004: right shift on negative number does not work as documented Problem: Right shift on negative number does not work as documented. Solution: Use a uvarnumber_T type cast.
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 May 2022 21: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}\")