diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-07-30 23:57:26 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2022-07-31 01:02:08 +0100 |
commit | 3fa8e1f38fd53ceb58659949623f184b5971b9d4 (patch) | |
tree | af87c0ae646aa458bdad558ce031a90c6d957271 | |
parent | 4e234c760450b4ab27ed35e68e05fe6f9092c177 (diff) | |
download | swig-3fa8e1f38fd53ceb58659949623f184b5971b9d4.tar.gz |
Visual C++ warning fix
conversion from '__int64' to 'long', possible loss of data
-rw-r--r-- | Source/Swig/typemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Swig/typemap.c b/Source/Swig/typemap.c index 126d88026..d6f48814d 100644 --- a/Source/Swig/typemap.c +++ b/Source/Swig/typemap.c @@ -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 { |