File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,12 @@ contains
134
134
135
135
if (major > 1) then
136
136
header_len = ichar(buf(1)) &
137
- & + ichar(buf(2)) * 2**8 &
138
- & + ichar(buf(3)) * 2**16 &
139
- & + ichar(buf(4)) * 2**32
137
+ & + ichar(buf(2)) * 256**1 &
138
+ & + ichar(buf(3)) * 256**2 &
139
+ & + ichar(buf(4)) * 256**3
140
140
else
141
141
header_len = ichar(buf(1)) &
142
- & + ichar(buf(2)) * 2**8
142
+ & + ichar(buf(2)) * 256**1
143
143
end if
144
144
allocate(character(header_len) :: dict, stat=stat)
145
145
if (stat /= 0) return
Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ contains
60
60
!> String of bytes
61
61
character(len=4) :: str
62
62
63
- str = achar(mod(val, 2**8 )) // &
64
- & achar(mod(val, 2**16 ) / 2**8 ) // &
65
- & achar(mod(val, 2**32 ) / 2**16 ) // &
66
- & achar(val / 2**32 )
63
+ str = achar(mod(val, 256**1 )) // &
64
+ & achar(mod(val, 256**2 ) / 256**1 ) // &
65
+ & achar(mod(val, 256**3 ) / 256**2 ) // &
66
+ & achar(val / 256**3 )
67
67
end function to_bytes_i4
68
68
69
69
You can’t perform that action at this time.
0 commit comments