summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorWolfgang Richter <wolf@cs.cmu.edu>2013-07-10 23:05:39 -0700
committerPieter Noordhuis <pcnoordhuis@gmail.com>2013-07-10 23:05:39 -0700
commit37a840dc2c0899e032e0fb05a0813e137a68f032 (patch)
treed7a43126311b1ab07ca3d83792b595ff2e54206e /examples
parentafc462d35d6940f77db843f7981377b5d0d75c89 (diff)
Emphasize size_t length for %b formatting
Closes #121.
Diffstat (limited to 'examples')
-rw-r--r--examples/example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.c b/examples/example.c
index 8b2e7f7..c76451f 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -32,7 +32,7 @@ int main(void) {
freeReplyObject(reply);
/* Set a key using binary safe API */
- reply = redisCommand(c,"SET %b %b", "bar", 3, "hello", 5);
+ reply = redisCommand(c,"SET %b %b", "bar", (size_t) 3, "hello", (size_t) 5);
printf("SET (binary API): %s\n", reply->str);
freeReplyObject(reply);