Skip to content

Commit 6f200f9

Browse files
committed
"Fix" wrapping of string constants
1 parent 999fc68 commit 6f200f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Modules/fortran.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2877,8 +2877,8 @@ int FORTRAN::constantWrapper(Node *n) {
28772877

28782878
// Get Fortran data type
28792879
Swig_typemap_lookup("bindc", n, Getattr(n, "name"), NULL);
2880-
String *bindc_typestr = Getattr(n, "tmap:bindc:fortranconst");
28812880
bool is_native_constant = GetFlagAttr(n, "feature:fortran:const");
2881+
String *bindc_typestr = is_native_constant ? Getattr(n, "tmap:bindc:fortranconst") : Getattr(n, "tmap:bindc");
28822882

28832883
// Check for missing typemap
28842884
if (!bindc_typestr) {

0 commit comments

Comments
 (0)