nsxiva23636d
Fixed pointer-to-int-cast warnings on x86_64
+3 −3
1 file changed
- M commands.c +3 −3
| @@ -109,7 +109,7 @@ int it_remove_image(arg_t a) { | |||
| 109 | 109 | } | |
| 110 | 110 | ||
| 111 | 111 | int i_navigate(arg_t a) { | |
| 112 | − | int n = (int) a; | |
| 112 | + | long n = (long) a; | |
| 113 | 113 | ||
| 114 | 114 | if (mode == MODE_IMAGE) { | |
| 115 | 115 | n += fileidx; | |
| @@ -154,7 +154,7 @@ int it_last(arg_t a) { | |||
| 154 | 154 | ||
| 155 | 155 | int i_navigate_frame(arg_t a) { | |
| 156 | 156 | if (mode == MODE_IMAGE && !img.multi.animate) | |
| 157 | − | return img_frame_navigate(&img, (int) a); | |
| 157 | + | return img_frame_navigate(&img, (long) a); | |
| 158 | 158 | else | |
| 159 | 159 | return 0; | |
| 160 | 160 | } | |
| @@ -259,7 +259,7 @@ int i_drag(arg_t a) { | |||
| 259 | 259 | } | |
| 260 | 260 | ||
| 261 | 261 | int i_zoom(arg_t a) { | |
| 262 | − | int scale = (int) a; | |
| 262 | + | long scale = (long) a; | |
| 263 | 263 | ||
| 264 | 264 | if (mode != MODE_IMAGE) | |
| 265 | 265 | return 0; | |