Visual C++ warning fix

conversion from '__int64' to 'long', possible loss of data
This commit is contained in:
William S Fulton 2022-07-30 23:57:26 +01:00
commit 3fa8e1f38f

View file

@ -2102,7 +2102,7 @@ static void replace_embedded_typemap(String *s, ParmList *parm_sublist, Wrapper
found_colon = Strchr(tmap_method, ':');
if (found_colon) {
/* Substitute from a keyword argument to a typemap. Avoid emitting local variables from the attached typemap by passing NULL for the file. */
String *temp_tmap_method = NewStringWithSize(Char(tmap_method), found_colon - Char(tmap_method));
String *temp_tmap_method = NewStringWithSize(Char(tmap_method), (int)(found_colon - Char(tmap_method)));
Swig_typemap_attach_parms(temp_tmap_method, to_match_parms, NULL);
Delete(temp_tmap_method);
} else {