diff options
author | lloydh <lloydh@e775cfb5-b74b-0410-aad5-5bebe4a96390> | 2008-01-14 18:14:22 +0000 |
---|---|---|
committer | lloydh <lloydh@e775cfb5-b74b-0410-aad5-5bebe4a96390> | 2008-01-14 18:14:22 +0000 |
commit | e0141e6b44ef2eb601d06e40c537aff5ae4d91eb (patch) | |
tree | 2b5458fa75c979deca32cfa8ea0f7c430ca5674f /test | |
parent | 69f73040b0f0b064cf0c440ea5c44cff5eab4748 (diff) | |
download | yajl-e0141e6b44ef2eb601d06e40c537aff5ae4d91eb.tar.gz |
fix windows warning with a cast.
git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@95 e775cfb5-b74b-0410-aad5-5bebe4a96390
Diffstat (limited to 'test')
-rw-r--r-- | test/yajl_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/yajl_test.c b/test/yajl_test.c index 9cb638f..a98b906 100644 --- a/test/yajl_test.c +++ b/test/yajl_test.c @@ -151,7 +151,7 @@ main(int argc, char ** argv) if (++i >= argc) usage(argv[0]); /* validate integer */ - for (j=0;j<strlen(argv[i]);j++) { + for (j=0;j<(int)strlen(argv[i]);j++) { if (argv[i][j] <= '9' && argv[i][j] >= '0') continue; fprintf(stderr, "-b requires an integer argument. '%s' " "is invalid\n", argv[i]); @@ -199,6 +199,7 @@ main(int argc, char ** argv) stat != yajl_status_ok) { unsigned char * str = yajl_get_error(hand, 0, fileData, rd); + fflush(stdout); fprintf(stderr, (char *) str); yajl_free_error(str); break; |