Skip to content

Commit

Permalink
Small code style change (#2043)
Browse files Browse the repository at this point in the history
Making operator precedence explicit.
  • Loading branch information
cpsw authored and aleks-f committed Dec 11, 2017
1 parent 7a35c54 commit 503c289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PDF/src/hpdf_xref.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ HPDF_Xref_Add (HPDF_Xref xref,

header = (HPDF_Obj_Header *)obj;

if (header->obj_id & HPDF_OTYPE_DIRECT ||
header->obj_id & HPDF_OTYPE_INDIRECT)
if ((header->obj_id & HPDF_OTYPE_DIRECT) ||
(header->obj_id & HPDF_OTYPE_INDIRECT))
return HPDF_SetError(xref->error, HPDF_INVALID_OBJECT, 0);

if (xref->entries->count >= HPDF_LIMIT_MAX_XREF_ELEMENT) {
Expand Down

0 comments on commit 503c289

Please sign in to comment.