Skip to content

Commit

Permalink
Remove casts to local variable with initialisers
Browse files Browse the repository at this point in the history
  • Loading branch information
wsfulton committed Oct 30, 2024
1 parent d8721c8 commit 27c612b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/Swig/cwrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ static String *Swig_clocal(SwigType *t, const_String_or_char_ptr name, const_Str
default:
if (value) {
String *lcaststr = SwigType_lcaststr(t, value);
String *lstr = SwigType_lstr(t, 0);
String *lstrn = SwigType_lstr(t, name);
Printf(decl, "%s = (%s) %s", lstrn, lstr, lcaststr);
Printf(decl, "%s = %s", lstrn, lcaststr);
Delete(lcaststr);
Delete(lstr);
Delete(lstrn);
} else {
String *lstrname = SwigType_lstr(t, name);
Expand Down

0 comments on commit 27c612b

Please sign in to comment.