Sun C warns about an integer overflow for 1 << 31, presumably because 1
is signed; make the flags field in "struct magnify" unsigned, and make the flags unsigned, so we shift 1U rather than 1. svn path=/trunk/; revision=25421
This commit is contained in:
parent
caa183b45b
commit
aeda5cffa7
|
@ -263,10 +263,10 @@ struct magnify {
|
||||||
int width, height;
|
int width, height;
|
||||||
struct zoom zoom;
|
struct zoom zoom;
|
||||||
struct graph *g;
|
struct graph *g;
|
||||||
#define MAGZOOMS_SAME (1 << 0)
|
#define MAGZOOMS_SAME (1U << 0)
|
||||||
#define MAGZOOMS_SAME_RATIO (1 << 1)
|
#define MAGZOOMS_SAME_RATIO (1U << 1)
|
||||||
#define MAGZOOMS_IGNORE (1 << 31)
|
#define MAGZOOMS_IGNORE (1U << 31)
|
||||||
int flags;
|
guint flags;
|
||||||
struct {
|
struct {
|
||||||
GtkSpinButton *h_zoom, *v_zoom;
|
GtkSpinButton *h_zoom, *v_zoom;
|
||||||
} widget;
|
} widget;
|
||||||
|
|
Loading…
Reference in New Issue