File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ typedef struct gfc_descriptor_t {
84
84
#define GFC_DESCRIPTOR_RANK (desc ) (desc)->dtype.rank
85
85
#define GFC_DESCRIPTOR_TYPE (desc ) (desc)->dtype.type
86
86
#define GFC_DESCRIPTOR_SIZE (desc ) (desc)->dtype.elem_len
87
- #define GFC_DTYPE_TYPE_SIZE (desc ) (desc)->dtype.elem_len
87
+ #define GFC_DTYPE_TYPE_SIZE (desc ) (( ((desc)->dtype.type << GFC_DTYPE_TYPE_SHIFT) \
88
+ | ((desc)->dtype.elem_len << GFC_DTYPE_SIZE_SHIFT) ) & GFC_DTYPE_TYPE_SIZE_MASK)
88
89
89
90
#else
90
91
@@ -167,11 +168,14 @@ typedef struct gfc_descriptor_t {
167
168
receives in the dtype component its gf_descriptor_t argument for character(kind=c_char)
168
169
and logical(kind=c_bool) data:
169
170
*/
170
- #define GFC_DTYPE_CHARACTER 48
171
171
172
- #if 0
172
+ #ifdef GCC_GE_8
173
+
173
174
#define GFC_DTYPE_CHARACTER ((BT_CHARACTER << GFC_DTYPE_TYPE_SHIFT) \
174
175
| (sizeof(char) << GFC_DTYPE_SIZE_SHIFT))
176
+
177
+ #else
178
+ #define GFC_DTYPE_CHARACTER 48
175
179
#endif
176
180
177
181
You can’t perform that action at this time.
0 commit comments