File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -227,15 +227,17 @@ pure function s(self) result(string)
227
227
character (len= buffersize) :: buffer
228
228
integer :: ii
229
229
230
- do ii = 1 , size (self% num)
231
- if (allocated (string)) then
232
- write (buffer, ' (".", i0)' ) self% num(ii)
233
- string = string // trim (buffer)
234
- else
235
- write (buffer, ' (i0)' ) self% num(ii)
236
- string = trim (buffer)
237
- end if
238
- end do
230
+ if (allocated (self% num)) then
231
+ do ii = 1 , size (self% num)
232
+ if (allocated (string)) then
233
+ write (buffer, ' (".", i0)' ) self% num(ii)
234
+ string = string // trim (buffer)
235
+ else
236
+ write (buffer, ' (i0)' ) self% num(ii)
237
+ string = trim (buffer)
238
+ end if
239
+ end do
240
+ endif
239
241
240
242
if (.not. allocated (string)) then
241
243
string = ' 0'
You can’t perform that action at this time.
0 commit comments