Warning fix for visual c++
This commit is contained in:
parent
25ac8f97f6
commit
d387e749f5
1 changed files with 1 additions and 1 deletions
|
|
@ -1206,7 +1206,7 @@ String *Swig_string_rstrip(String *s) {
|
||||||
String *suffix = NewStringf(fmt, cs+1);
|
String *suffix = NewStringf(fmt, cs+1);
|
||||||
int suffix_len = Len(suffix);
|
int suffix_len = Len(suffix);
|
||||||
if (0 == Strncmp(cs+len-suffix_len, suffix, suffix_len)) {
|
if (0 == Strncmp(cs+len-suffix_len, suffix, suffix_len)) {
|
||||||
int copy_len = len-suffix_len-(ce+1-cs);
|
int copy_len = len-suffix_len-(int)(ce+1-cs);
|
||||||
ns = NewStringWithSize(ce+1, copy_len);
|
ns = NewStringWithSize(ce+1, copy_len);
|
||||||
} else {
|
} else {
|
||||||
ns = NewString(ce+1);
|
ns = NewString(ce+1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue