@@ -131,7 +131,7 @@ bool is_fortran_intexpr(String *s) {
131
131
*/
132
132
int fix_fortran_dims (Node *n, const char *tmap_name, String *typemap) {
133
133
String *key = NewStringf (" tmap:%s:checkdim" , tmap_name);
134
- bool is_checkdims = GetFlag (n, key);
134
+ bool is_checkdims = static_cast < bool >( GetFlag (n, key) );
135
135
Delete (key);
136
136
if (!is_checkdims)
137
137
return SWIG_OK;
@@ -242,7 +242,7 @@ String *make_import_string(String *imtype) {
242
242
++end;
243
243
244
244
// Create a substring and convert to lowercase
245
- String* result = NewStringWithSize (start, end - start);
245
+ String* result = NewStringWithSize (start, static_cast < int >( end - start) );
246
246
for (char * c = Char (result); *c != ' \0 ' ; ++c)
247
247
*c = tolower (*c);
248
248
@@ -293,7 +293,7 @@ String *shorten_identifier(String *inp, int maxlen, int warning) {
293
293
while (hash > 0 ) {
294
294
unsigned long rem = hash % 36 ;
295
295
hash = hash / 36 ;
296
- *dst-- = (rem < 10 ? ' 0' + rem : (' A' + rem - 10 ));
296
+ *dst-- = static_cast < char > (rem < 10 ? ' 0' + rem : (' A' + rem - 10 ));
297
297
}
298
298
299
299
if (warning != WARN_NONE && !Getmeta (inp, " already_warned" )) {
@@ -1072,7 +1072,7 @@ int FORTRAN::moduleDirective(Node *n) {
1072
1072
* - static functions
1073
1073
*/
1074
1074
int FORTRAN::functionWrapper (Node *n) {
1075
- const bool member = GetFlag (n, " fortran:ismember" );
1075
+ const bool member = static_cast < bool >( GetFlag (n, " fortran:ismember" ) );
1076
1076
bool generic = false ;
1077
1077
1078
1078
// >>> SET UP WRAPPER NAME
@@ -1292,7 +1292,7 @@ int FORTRAN::functionWrapper(Node *n) {
1292
1292
1293
1293
// >>> GENERATE CODE FOR MODULE INTERFACE
1294
1294
1295
- bool fprivate = GetFlag (n, " fortran:private" );
1295
+ bool fprivate = static_cast < bool >( GetFlag (n, " fortran:private" ) );
1296
1296
if (member) {
1297
1297
// Wrapping a member function
1298
1298
ASSERT_OR_PRINT_NODE (!this ->is_bindc_struct (), n);
@@ -2396,7 +2396,7 @@ int FORTRAN::classHandler(Node *n) {
2396
2396
}
2397
2397
}
2398
2398
2399
- const bool bindc = GetFlag (n, " feature:fortran:bindc" );
2399
+ const bool bindc = static_cast < bool >( GetFlag (n, " feature:fortran:bindc" ) );
2400
2400
if (bindc && base_fsymname) {
2401
2401
// Disallow inheritance for BIND(C) types
2402
2402
Swig_error (input_file, line_number,
@@ -3323,7 +3323,7 @@ int FORTRAN::classDirectorDefaultConstructor(Node *n) {
3323
3323
* - "directorout" converts "ctype" to actual C++ type
3324
3324
*/
3325
3325
int FORTRAN::classDirectorMethod (Node *n, Node *classn, String *super) {
3326
- bool ignored = GetFlag (n, " feature:ignore" );
3326
+ bool ignored = static_cast < bool >( GetFlag (n, " feature:ignore" ) );
3327
3327
bool pure_virtual = is_pure_virtual (n);
3328
3328
if (ignored && !pure_virtual)
3329
3329
return SWIG_NOWRAP;
@@ -3563,9 +3563,9 @@ int FORTRAN::classDirectorMethod(Node *n, Node *classn, String *super) {
3563
3563
3564
3564
// Create local variables that become arguments to fortran
3565
3565
{
3566
- String *cdecl = SwigType_lstr (ctype, imarg);
3567
- Wrapper_add_localv (cppfunc, imarg, cdecl , NULL );
3568
- Delete (cdecl );
3566
+ String *argcdecl = SwigType_lstr (ctype, imarg);
3567
+ Wrapper_add_localv (cppfunc, imarg, argcdecl , NULL );
3568
+ Delete (argcdecl );
3569
3569
}
3570
3570
3571
3571
// Add C++ -> C conversion typemaps for input args
0 commit comments