aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-01-15 17:40:22 +0100
committerMattias Andrée <maandree@kth.se>2017-01-15 17:40:22 +0100
commit7bd1282fba79997816521e25485ab890a0a0126d (patch)
treeba018cf7463c015a1e9b6ad69751c8c56bd8b0a3 /src/stream.h
parentUse macros to write the head (diff)
downloadblind-7bd1282fba79997816521e25485ab890a0a0126d.tar.gz
blind-7bd1282fba79997816521e25485ab890a0a0126d.tar.bz2
blind-7bd1282fba79997816521e25485ab890a0a0126d.tar.xz
Fix some minor errors
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/stream.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stream.h b/src/stream.h
index 53b7113..5fa3eea 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -6,15 +6,15 @@
#define SPRINTF_HEAD_ZN(BUF, FRAMES, WIDTH, HEIGHT, PIXFMT, LENP)\
sprintf(BUF, "%zu %zu %zu %s\n%cuivf%zn",\
- FRAMES, WIDTH, HEIGHT, PIXFMT, 0, LENP)
+ (size_t)(FRAMES), (size_t)(WIDTH), (size_t)(HEIGHT), PIXFMT, 0, LENP)
#define SPRINTF_HEAD(BUF, FRAMES, WIDTH, HEIGHT, PIXFMT)\
sprintf(BUF, "%zu %zu %zu %s\n%cuivf",\
- FRAMES, WIDTH, HEIGHT, PIXFMT, 0)
+ (size_t)(FRAMES), (size_t)(WIDTH), (size_t)(HEIGHT), PIXFMT, 0)
#define FPRINTF_HEAD(FP, FRAMES, WIDTH, HEIGHT, PIXFMT)\
- fprintf(fp, "%zu %zu %zu %s\n%cuivf",\
- FRAMES, WIDTH, HEIGHT, PIXFMT, 0)
+ fprintf(FP, "%zu %zu %zu %s\n%cuivf",\
+ (size_t)(FRAMES), (size_t)(WIDTH), (size_t)(HEIGHT), PIXFMT, 0)
#define einit_stream(...) eninit_stream(1, __VA_ARGS__)
#define eset_pixel_size(...) enset_pixel_size(1, __VA_ARGS__)