libctf: fix isspace casts
[deliverable/binutils-gdb.git] / libctf / ctf-archive.c
index 457855207bffd349f95d0fb801b238e558c5eac2..87e682c3943a18006e2a80a75b9f71e2d94298d8 100644 (file)
@@ -386,7 +386,7 @@ ctf_arc_bufopen (const ctf_sect_t *ctfsect, const ctf_sect_t *symsect,
   ctf_file_t *fp = NULL;
 
   if (ctfsect->cts_size > sizeof (uint64_t) &&
-      ((*(uint64_t *) ctfsect->cts_data) == CTFA_MAGIC))
+      (le64toh ((*(uint64_t *) ctfsect->cts_data)) == CTFA_MAGIC))
     {
       /* The archive is mmappable, so this operation is trivial.
 
This page took 0.026832 seconds and 4 git commands to generate.