remove ambiguity by setting parentheses
This commit is contained in:
@@ -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