summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-09-03 23:07:14 +0200
committerBert <ber.t@gmx.com>2011-09-03 23:07:14 +0200
commita23636d95ea1cdb40f03cd15b7db49f3a9d7cf42 (patch)
tree186976b43f1dc66760db86318f95c13b7884d423 /commands.c
parentc2320a2f49fc4447c2b717f8f3d03b7612e76ab8 (diff)
downloadnsxiv-a23636d95ea1cdb40f03cd15b7db49f3a9d7cf42.tar.zst
Fixed pointer-to-int-cast warnings on x86_64
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands.c b/commands.c
index 20ffd42..acf41d9 100644
--- a/commands.c
+++ b/commands.c
@@ -109,7 +109,7 @@ int it_remove_image(arg_t a) {
}
int i_navigate(arg_t a) {
- int n = (int) a;
+ long n = (long) a;
if (mode == MODE_IMAGE) {
n += fileidx;
@@ -154,7 +154,7 @@ int it_last(arg_t a) {
int i_navigate_frame(arg_t a) {
if (mode == MODE_IMAGE && !img.multi.animate)
- return img_frame_navigate(&img, (int) a);
+ return img_frame_navigate(&img, (long) a);
else
return 0;
}
@@ -259,7 +259,7 @@ int i_drag(arg_t a) {
}
int i_zoom(arg_t a) {
- int scale = (int) a;
+ long scale = (long) a;
if (mode != MODE_IMAGE)
return 0;