summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2011-04-27 20:12:51 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2011-04-27 20:12:51 +0200
commitb0a0f5c0aabb534bbd00267dcc70a44927d7b707 (patch)
treefbf8902f334cce7f1f4284475d41e4cfe9225da3 /test
parentc6e21cfe0bc0185e4db5bf2bb346128059b7126c (diff)
downloaduca-b0a0f5c0aabb534bbd00267dcc70a44927d7b707.tar.gz
uca-b0a0f5c0aabb534bbd00267dcc70a44927d7b707.tar.bz2
uca-b0a0f5c0aabb534bbd00267dcc70a44927d7b707.tar.xz
uca-b0a0f5c0aabb534bbd00267dcc70a44927d7b707.zip
Be compatible on 32-bit systems
Diffstat (limited to 'test')
-rw-r--r--test/grab-async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/grab-async.c b/test/grab-async.c
index c4c270d..0a7d33f 100644
--- a/test/grab-async.c
+++ b/test/grab-async.c
@@ -16,12 +16,12 @@ void grab_callback(uint64_t image_number, void *buffer, void *meta_data, void *u
const int pixel_size = props->bits == 8 ? 1 : 2;
char filename[256];
- sprintf(filename, "out-%04lu.raw", image_number);
+ sprintf(filename, "out-%04llu.raw", image_number);
FILE *fp = fopen(filename, "wb");
fwrite(buffer, props->width * props->height, pixel_size, fp);
fclose(fp);
- printf("grabbed picture %lu at %p (%ix%i @ %i bits)\n", image_number, buffer, props->width, props->height, props->bits);
+ printf("grabbed picture %llu at %p (%ix%i @ %i bits)\n", image_number, buffer, props->width, props->height, props->bits);
}
int main(int argc, char *argv[])