mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
remove ambiguity by setting parentheses
This commit is contained in:
parent
5021380d35
commit
9bada09057
@ -341,7 +341,7 @@ time_t asn1_to_time(const chunk_t *utctime, asn1_t type)
|
||||
tc = mktime(&t);
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -426,7 +426,7 @@ asn1totime(const chunk_t *utctime, asn1_t type)
|
||||
tc = mktime(&t);
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user