remove ambiguity by setting parentheses
This commit is contained in:
1 parent
5021380d35
commit
9bada09057
2 files changed
+2
-2
No files matched your search
@@ -341,7 +341,7 @@ time_t asn1_to_time(const chunk_t *utctime, asn1_t type)
|
|||||||
tc = mktime(&t);
|
tc = mktime(&t);
|
||||||
|
|
||||||
/* if no conversion overflow occurred, compensate timezone */
|
/* if no conversion overflow occurred, compensate timezone */
|
||||||
return (tc == -1) ? TIME_MAX : tc - timezone - tz_offset;
|
return (tc == -1) ? TIME_MAX : (tc - timezone - tz_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -426,7 +426,7 @@ asn1totime(const chunk_t *utctime, asn1_t type)
|
|||||||
tc = mktime(&t);
|
tc = mktime(&t);
|
||||||
|
|
||||||
/* if no conversion overflow occurred, compensate timezone */
|
/* if no conversion overflow occurred, compensate timezone */
|
||||||
return (tc == -1) ? TIME_MAX : tc - timezone - tz_offset;
|
return (tc == -1) ? TIME_MAX : (tc - timezone - tz_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in new issue
Block a user