Fixed json_checker warnings from vs2013

This commit is contained in:
Jordan Cristiano 2015-10-15 01:08:02 -04:00
parent 2eb62f16e8
commit 67d3188a58

View File

@ -189,7 +189,7 @@ enum modes {
MODE_OBJECT,
};
static int
static bool
reject(JSON_checker jc)
{
/*
@ -201,7 +201,7 @@ reject(JSON_checker jc)
}
static int
static bool
push(JSON_checker jc, int mode)
{
/*
@ -216,7 +216,7 @@ push(JSON_checker jc, int mode)
}
static int
static bool
pop(JSON_checker jc, int mode)
{
/*
@ -394,5 +394,5 @@ JSON_checker_done(JSON_checker jc)
*/
int result = jc->state == OK && pop(jc, MODE_DONE);
reject(jc);
return result;
return (result != 0);
}