We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a87696 commit e08d051Copy full SHA for e08d051
src/stdlib_string_type.fypp
@@ -421,7 +421,7 @@ contains
421
type(string_type), intent(in) :: string
422
integer :: ich
423
424
- if (allocated(string%raw) .and. len_trim(string%raw) > 0) then
+ if (allocated(string%raw) .and. len(string) > 0) then
425
ich = ichar(string%raw(1:1))
426
else
427
ich = 0
@@ -435,7 +435,7 @@ contains
435
436
437
438
439
ich = iachar(string%raw(1:1))
440
441
0 commit comments