Ticket #39334: dvipdfmx-takanori.diff

File dvipdfmx-takanori.diff, 862 bytes (added by takanori@…, 4 years ago)
  • src/dpxcrypt.h

    old new  
    2424#define _DPXCRYPT_H_
    2525
    2626#include <stdio.h>
     27#include <stdint.h>
    2728
    2829/* libgcrypt md5 */
    2930typedef struct {
    30   unsigned long A,B,C,D; /* chaining variables */
     31  uint32_t A,B,C,D; /* chaining variables */
    3132  unsigned long nblocks;
    3233  unsigned char buf[64];
    3334  int count;
  • src/dpxcrypt.c

    old new  
    281281#define X(a) do { *p++ = hd->a; *p++ = hd->a >> 8; \
    282282                  *p++ = hd->a >> 16; *p++ = hd->a >> 24; } while (0)
    283283#else /* little endian */
    284 #define X(a) do { *(unsigned long *)p = (*hd).a ; p += 4; } while (0)
     284#define X(a) do { *(uint32_t *)p = (*hd).a ; p += sizeof(uint32_t); } while (0)
    285285#endif
    286286  X(A);
    287287  X(B);