Module Name:    xsrc
Committed By:   joerg
Date:           Sun Feb 28 21:26:48 UTC 2016

Modified Files:
        xsrc/external/mit/fonttosfnt/dist: struct.c

Log Message:
Left shift of negative values is UB, so just consistently use
multiplication.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 xsrc/external/mit/fonttosfnt/dist/struct.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/fonttosfnt/dist/struct.c
diff -u xsrc/external/mit/fonttosfnt/dist/struct.c:1.1.1.1 xsrc/external/mit/fonttosfnt/dist/struct.c:1.2
--- xsrc/external/mit/fonttosfnt/dist/struct.c:1.1.1.1	Wed Jul 30 02:35:52 2008
+++ xsrc/external/mit/fonttosfnt/dist/struct.c	Sun Feb 28 21:26:48 2016
@@ -491,8 +491,8 @@ fontMetrics(FontPtr font,
 {
     int i, rc;
     int max_awidth = 0;
-    int min_x = 10000 << 16, min_y = 10000 << 16;
-    int max_x = -10000 << 16, max_y = -10000 << 16;
+    int min_x = 10000 * 65536, min_y = 10000 * 65536;
+    int max_x = -10000 * 65536, max_y = -10000 * 65536;
     for(i = 0; i < FONT_CODES; i++) {
         int awidth, x0, y0, x1, y1;
         rc = glyphMetrics(font, i, &awidth, &x0, &y0, &x1, &y1);

Reply via email to