Skip to content

Commit

Permalink
Fix #1458, Adds JSC 2.1 Static Analysis comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfiguer authored and jdfiguer committed Jun 14, 2024
1 parent 6483329 commit 4cbbcf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/os/inc/osapi-clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ static inline int64 OS_TimeGetTotalMicroseconds(OS_time_t tm)
*/
static inline OS_time_t OS_TimeFromTotalMicroseconds(int64 tm)
{
/* SAD: Overflow is not considered a concern because tm would need to be over 29,227 years in microseconds */
OS_time_t ostm = {tm * OS_TIME_TICKS_PER_USEC};
return ostm;
}
Expand Down

0 comments on commit 4cbbcf3

Please sign in to comment.