The MinGW.org Installation Manager Tool
修订版 | cbc1af0ec4914acfab06cbf1fc22833646ef4c4d (tree) |
---|---|
时间 | 2011-11-25 06:50:46 |
作者 | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Avoid implicit cast warnings; reported by Robert Hartmann.
@@ -1,3 +1,10 @@ | ||
1 | +2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Avoid implicit cast warnings; reported by Robert Hartmann. | |
4 | + | |
5 | + * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t. | |
6 | + (DMH_END_DIGEST): Likewise. | |
7 | + | |
1 | 8 | 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 9 | |
3 | 10 | Avoid unnecessary downloads for already installed packages. |
@@ -60,8 +60,8 @@ EXTERN_C void dmh_init( const dmh_class, const char* ); | ||
60 | 60 | EXTERN_C int dmh_notify( const dmh_severity, const char *fmt, ... ); |
61 | 61 | EXTERN_C int dmh_printf( const char *fmt, ... ); |
62 | 62 | |
63 | -#define DMH_BEGIN_DIGEST 0x0001U, ~0x0001U | |
64 | -#define DMH_END_DIGEST 0x0100U, 0x0000U | |
63 | +#define DMH_BEGIN_DIGEST (uint16_t)(0x0001U), ~(uint16_t)(0x0001U) | |
64 | +#define DMH_END_DIGEST (uint16_t)(0x0100U), (uint16_t)(0x0000U) | |
65 | 65 | |
66 | 66 | EXTERN_C uint16_t dmh_control( const uint16_t, const uint16_t ); |
67 | 67 |