Krolyxon
Commit a23636d

Branches

Refs →

nsxiva23636d

Fixed pointer-to-int-cast warnings on x86_64

Author
Bert
Date
2011-09-03 23:07 +0200
Parent
c2320a2
Commit
a23636d95ea1cdb40f03cd15b7db49f3a9d7cf42

+3 −3

1 file changed

  1. M commands.c +3 −3
M commands.c View
@@ -109,7 +109,7 @@ int it_remove_image(arg_t a) {
109109 }
110110
111111 int i_navigate(arg_t a) {
112− int n = (int) a;
112+ long n = (long) a;
113113
114114 if (mode == MODE_IMAGE) {
115115 n += fileidx;
@@ -154,7 +154,7 @@ int it_last(arg_t a) {
154154
155155 int i_navigate_frame(arg_t a) {
156156 if (mode == MODE_IMAGE && !img.multi.animate)
157− return img_frame_navigate(&img, (int) a);
157+ return img_frame_navigate(&img, (long) a);
158158 else
159159 return 0;
160160 }
@@ -259,7 +259,7 @@ int i_drag(arg_t a) {
259259 }
260260
261261 int i_zoom(arg_t a) {
262− int scale = (int) a;
262+ long scale = (long) a;
263263
264264 if (mode != MODE_IMAGE)
265265 return 0;