aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/json.c6
-rw-r--r--src/shell.c.in2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/json.c b/src/json.c
index aae48c291..b7cd6cbdf 100644
--- a/src/json.c
+++ b/src/json.c
@@ -303,7 +303,7 @@ static void jsonAppendString(JsonString *p, const char *zIn, u32 N){
** features.
*/
static void jsonAppendNormalizedString(JsonString *p, const char *zIn, u32 N){
- int i;
+ u32 i;
jsonAppendChar(p, '"');
zIn++;
N -= 2;
@@ -391,7 +391,7 @@ static void jsonAppendNormalizedInt(JsonString *p, const char *zIn, u32 N){
** features.
*/
static void jsonAppendNormalizedReal(JsonString *p, const char *zIn, u32 N){
- int i;
+ u32 i;
if( zIn[0]=='+' ){
zIn++;
N--;
@@ -2608,7 +2608,7 @@ static void jsonErrorFunc(
sqlite3_result_int(ctx, 0);
}else{
int n = 1;
- int i;
+ u32 i;
const char *z = p->zJson;
for(i=0; i<p->iErr && ALWAYS(z[i]); i++){
if( (z[i]&0xc0)!=0x80 ) n++;
diff --git a/src/shell.c.in b/src/shell.c.in
index 7285067be..36f7b38cb 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -5757,7 +5757,7 @@ static int sql_trace_callback(
break;
}
case SQLITE_TRACE_PROFILE: {
- sqlite3_int64 nNanosec = *(sqlite3_int64*)pX;
+ sqlite3_int64 nNanosec = pX ? *(sqlite3_int64*)pX : 0;
utf8_printf(p->traceOut, "%.*s; -- %lld ns\n", (int)nSql, zSql, nNanosec);
break;
}