File source-dvipdfmx.dif of Package texlive.14234

--- texk/dvipdfm-x/src/dpxcrypt.c
+++ texk/dvipdfm-x/src/dpxcrypt.c	2014-01-13 11:02:13.742235821 +0000
@@ -289,7 +289,7 @@ void MD5_final (unsigned char *outbuf, M
 #define X(a) do { *p++ = hd->a; *p++ = hd->a >> 8; \
 	          *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while (0)
 #else /* little endian */
-#define X(a) do { *(unsigned long *)p = (*hd).a ; p += 4; } while (0)
+#define X(a) do { *(uint32_t *)p = (*hd).a ; p += sizeof(uint32_t); } while (0)
 #endif
   X(A);
   X(B);
--- texk/dvipdfm-x/src/dpxcrypt.h
+++ texk/dvipdfm-x/src/dpxcrypt.h	2014-01-13 11:02:13.658236115 +0000
@@ -24,10 +24,11 @@
 #define _DPXCRYPT_H_
 
 #include <stdio.h>
+#include <stdint.h>
 
 /* libgcrypt md5 */
 typedef struct {
-  unsigned long A,B,C,D; /* chaining variables */
+  uint32_t A,B,C,D; /* chaining variables */
   unsigned long nblocks;
   unsigned char buf[64];
   int count;
--- texk/dvipdfm-x/xsrc/dpxcrypt.c
+++ texk/dvipdfm-x/xsrc/dpxcrypt.c	2014-01-13 11:02:33.490235748 +0000
@@ -289,7 +289,7 @@ void MD5_final (unsigned char *outbuf, M
 #define X(a) do { *p++ = hd->a; *p++ = hd->a >> 8; \
 	          *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while (0)
 #else /* little endian */
-#define X(a) do { *(unsigned long *)p = (*hd).a ; p += 4; } while (0)
+#define X(a) do { *(uint32_t *)p = (*hd).a ; p += sizeof(uint32_t); } while (0)
 #endif
   X(A);
   X(B);
--- texk/dvipdfm-x/xsrc/dpxcrypt.h
+++ texk/dvipdfm-x/xsrc/dpxcrypt.h	2014-01-13 11:02:33.406235303 +0000
@@ -24,10 +24,11 @@
 #define _DPXCRYPT_H_
 
 #include <stdio.h>
+#include <stdint.h>
 
 /* libgcrypt md5 */
 typedef struct {
-  unsigned long A,B,C,D; /* chaining variables */
+  uint32_t A,B,C,D; /* chaining variables */
   unsigned long nblocks;
   unsigned char buf[64];
   int count;
openSUSE Build Service is sponsored by