Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvr db: use labs instead abs for fuzzy match fcn
  • Loading branch information
perexg committed Aug 6, 2016
1 parent 39ffcb5 commit 0fd4d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_db.c
Expand Up @@ -672,7 +672,7 @@ dvr_entry_fuzzy_match(dvr_entry_t *de, epg_broadcast_t *e, uint16_t eid, int64_t
/* Wrong length (+/-20%) */
t1 = de->de_stop - de->de_start;
t2 = e->stop - e->start;
if (abs(t2 - t1) > (t1 / 5))
if (labs((long)(t2 - t1)) > (t1 / 5))
return 0;

/* Matching ID */
Expand Down

0 comments on commit 0fd4d80

Please sign in to comment.