Skip to content

Commit dd4c464

Browse files
authored
Merge pull request FRRouting#18792 from opensourcerouting/clippy-gcc-15
lib/clippy: pointer offsets are signed
2 parents a5a3950 + 1419dd0 commit dd4c464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/xrelfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,11 @@ def load_elf(self, filename, orig_filename):
385385
endian = ">" if edf._elffile.bigendian else "<"
386386
mem = edf._elffile[note]
387387
if edf._elffile.elfclass == 64:
388-
start, end = struct.unpack(endian + "QQ", mem)
388+
start, end = struct.unpack(endian + "qq", mem)
389389
start += note.start
390390
end += note.start + 8
391391
else:
392-
start, end = struct.unpack(endian + "II", mem)
392+
start, end = struct.unpack(endian + "ii", mem)
393393
start += note.start
394394
end += note.start + 4
395395

0 commit comments

Comments
 (0)