[D] Avoid implicit cast warning when building for x86_64.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ff965c1aff
commit
fb538c1b5b
1 changed files with 3 additions and 3 deletions
|
|
@ -4067,8 +4067,8 @@ private:
|
|||
}
|
||||
|
||||
if (end) {
|
||||
String *current_macro = NewStringWithSize(start, (end - start));
|
||||
String *current_param = NewStringWithSize(param_start, (param_end - param_start));
|
||||
String *current_macro = NewStringWithSize(start, (int)(end - start));
|
||||
String *current_param = NewStringWithSize(param_start, (int)(param_end - param_start));
|
||||
|
||||
String *import = createImportStatement(current_param, false);
|
||||
Replace(target, current_macro, import, DOH_REPLACE_ANY);
|
||||
|
|
@ -4077,7 +4077,7 @@ private:
|
|||
Delete(current_param);
|
||||
Delete(current_macro);
|
||||
} else {
|
||||
String *current_macro = NewStringWithSize(start, (c - start));
|
||||
String *current_macro = NewStringWithSize(start, (int)(c - start));
|
||||
Swig_error(Getfile(target), Getline(target), "Syntax error in: %s\n", current_macro);
|
||||
Replace(target, current_macro, "<error in $importtype macro>", DOH_REPLACE_ANY);
|
||||
Delete(current_macro);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue