Replaced add64, add64u and add64ul with operators.
Change-Id: Ia537f83e15cb686f1b81b34d73596f4298b0a924
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ static int rule_match(struct fbd_rule *rule, u64_t pos, size_t size, int flag)
|
||||
*/
|
||||
|
||||
/* Ranges must overlap (start < pos+size && end > pos). */
|
||||
if (cmp64(rule->start, add64u(pos, size)) >= 0 ||
|
||||
if (cmp64(rule->start, pos + size) >= 0 ||
|
||||
(cmp64u(rule->end, 0) && cmp64(rule->end, pos) <= 0))
|
||||
return FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user