mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Resolve type conflict
This commit is contained in:
Vendored
+6
-7
@@ -27,10 +27,7 @@ struct quirc *quirc_new(void)
|
||||
{
|
||||
struct quirc *q = malloc(sizeof(*q));
|
||||
|
||||
if (!q)
|
||||
return NULL;
|
||||
|
||||
memset(q, 0, sizeof(*q));
|
||||
memset(q, 0, sizeof(*q));
|
||||
return q;
|
||||
}
|
||||
|
||||
@@ -123,8 +120,10 @@ static const char *const error_table[] = {
|
||||
|
||||
const char *quirc_strerror(quirc_decode_error_t err)
|
||||
{
|
||||
if ((int)err >= 0 && (int)err < sizeof(error_table) / sizeof(error_table[0]))
|
||||
return error_table[err];
|
||||
if ((int) err >= 0) {
|
||||
if ((unsigned long) err < (unsigned long) (sizeof(error_table) / sizeof(error_table[0])))
|
||||
return error_table[err];
|
||||
}
|
||||
|
||||
return "Unknown error";
|
||||
return "Unknown error";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user