Mercurial > vim
view src/typemap @ 24574:3a3d5ee00574 v8.2.2826
patch 8.2.2826: compiler warnings for int to size_t conversion
Commit: https://github.com/vim/vim/commit/551c1aed65817558ac1ece541c246ea585645807
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 3 18:57:05 2021 +0200
patch 8.2.2826: compiler warnings for int to size_t conversion
Problem: Compiler warnings for int to size_t conversion. (Randall W.
Morris)
Solution: Add type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 May 2021 19:00:04 +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}\")