comparison tableprint.c @ 10476:e37d143be97e libavcodec

Change format string from "x" to PRIx32 to hopefully fix a warning with Cygwin gcc 4.2.4.
author reimar
date Wed, 28 Oct 2009 20:02:40 +0000
parents 09d8df2c1a4d
children 2980d9efc542
comparison
equal deleted inserted replaced
10475:26d367865bda 10476:e37d143be97e
36 }\ 36 }\
37 printf(" "fmtstr"\n", data[i]);\ 37 printf(" "fmtstr"\n", data[i]);\
38 } 38 }
39 39
40 WRITE_1D_FUNC(int8, int8_t, "%3"PRIi8, 15) 40 WRITE_1D_FUNC(int8, int8_t, "%3"PRIi8, 15)
41 WRITE_1D_FUNC(uint32, uint32_t, "0x%08x", 7) 41 WRITE_1D_FUNC(uint32, uint32_t, "0x%08"PRIx32, 7)
42 42
43 #define WRITE_2D_FUNC(name, type)\ 43 #define WRITE_2D_FUNC(name, type)\
44 void write_##name##_2d_array(const void *arg, int len, int len2)\ 44 void write_##name##_2d_array(const void *arg, int len, int len2)\
45 {\ 45 {\
46 const type *data = arg;\ 46 const type *data = arg;\