Mercurial > vim
view src/typemap @ 27136:0e88b48575ee v8.2.4097
patch 8.2.4097: wrong number in error message on 32 bit system
Commit: https://github.com/vim/vim/commit/f60a63485ea26d9bda1618d1b72662eca65b5f1f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 15 14:16:37 2022 +0000
patch 8.2.4097: wrong number in error message on 32 bit system
Problem: Wrong number in error message on 32 bit system. (John Paul Adrian
Glaubitz)
Solution: Add type cast. (closes #9527)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Jan 2022 15:30:03 +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}\")