Skip to contentSkip to conversation

tools/libxl: avoid comparing an unsigned int to -1

PATCH Applied Koushik Chakravarty 3 participants 3 messages Mar 16, 2015 – Mar 18, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libxl: avoid comparing an unsigned int to -1

CC Ian Jackson <[email protected]>
CC Stefano Stabellini <[email protected]>
CC Ian Campbell <[email protected]>
CC Wei Liu <[email protected]>
---
 tools/libxl/libxl_json.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_json.c +1 -1
index 98335b0..346929a 100644
@@ -1013,7 +1013,7 @@ out:
 yajl_gen_status libxl__uint64_gen_json(yajl_gen hand, uint64_t val)
 {
     char *num;
-    unsigned int len;
+    int len;
     yajl_gen_status s;
 
 
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Koushik Chakravarty
CC Ian Jackson <[email protected]>
CC Stefano Stabellini <[email protected]>
CC Ian Campbell <[email protected]>
CC Wei Liu <[email protected]>

Ian J, this one should be backported to 4.5.

Quoted 19 lines
---
 tools/libxl/libxl_json.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_json.c +1 -1
index 98335b0..346929a 100644
@@ -1013,7 +1013,7 @@ out:
 yajl_gen_status libxl__uint64_gen_json(yajl_gen hand, uint64_t val)
 {
     char *num;
-    unsigned int len;
+    int len;
     yajl_gen_status s;
 
 
Signature · 1 line
1.7.10.4