[evince] backend: More -Werror=format=2 fixes on dvi for ARM



commit f82b2486354d17c2d839f65be54b3b7714c5a18a
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Fri Jun 12 18:06:35 2020 -0400

    backend: More -Werror=format=2 fixes on dvi for ARM
    
    Fixes #1429

 backend/dvi/mdvi-lib/dviread.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/backend/dvi/mdvi-lib/dviread.c b/backend/dvi/mdvi-lib/dviread.c
index 545d6aae..f129c797 100644
--- a/backend/dvi/mdvi-lib/dviread.c
+++ b/backend/dvi/mdvi-lib/dviread.c
@@ -1319,7 +1319,7 @@ int       set_rule(DviContext *dvi, int opcode)
                }
        } else { 
                SHOWCMD((dvi, opcode == DVI_SET_RULE ? "setrule" : "putrule", -1,
-                       "(moving left only, by %d)\n", b));
+                       "(moving left only, by %ld)\n", (long) b));
        }
                        
        if(opcode == DVI_SET_RULE) {
@@ -1542,8 +1542,8 @@ int       def_font(DviContext *dvi, int opcode)
                return -1;
        }
        SHOWCMD((dvi, "fntdef", opcode - DVI_FNT_DEF1 + 1,
-               "%d -> %s (%d links)\n",
-               ref->fontid, ref->ref->fontname,
+               "%ld -> %s (%d links)\n",
+               (long) ref->fontid, ref->ref->fontname,
                ref->ref->links));
        return 0;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]