LGTM only supports C++ style comments... master
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 19 Nov 2019 16:19:24 +0000 (11:19 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 19 Nov 2019 16:19:24 +0000 (11:19 -0500)
backend/usb-libusb.c
cgi-bin/var.c

index 9740c14..393fe65 100644 (file)
@@ -878,7 +878,7 @@ find_device(usb_cb_t   cb,          /* I - Callback function */
           protocol   = 0;
 
          for (altset = 0, altptr = ifaceptr->altsetting;
-              altset < (uint8_t)ifaceptr->num_altsetting;
+              altset < ifaceptr->num_altsetting; // lgtm [cpp/comparison-with-wider-type]
               altset ++, altptr ++)
           {
           /*
index c5fde01..349a218 100644 (file)
@@ -983,7 +983,7 @@ cgi_initialize_post(void)
   */
 
   length = (size_t)strtol(content_length, NULL, 10);
-  data   = malloc(length + 1); /* lgtm [cpp/uncontrolled-allocation-size] */
+  data   = malloc(length + 1);         // lgtm [cpp/uncontrolled-allocation-size]
 
   if (data == NULL)
     return (0);