Skip to content

Conversation

pghmcfc
Copy link
Contributor

@pghmcfc pghmcfc commented Jan 4, 2021

The test suite compares times with seconds values of -INT_MAX and INT_MAX. The result of this comparison does not fit in a value of type int and so the test suite fails on 32-bit systems where time_t is an int. To fix this, calculations on seconds values are done using long long integers.

The test suite compares times with seconds values of -INT_MAX and
INT_MAX. The result of this comparison does not fit in a value of
type int and so the test suite fails on 32-bit systems where time_t
is an int. To fix this, calculations on seconds values are done
using long long integers.
@sirainen
Copy link
Contributor

sirainen commented Jan 7, 2021

Thanks! Looks fine to me. Tracking internally in DOP-2213.

@cmouse
Copy link
Contributor

cmouse commented Feb 3, 2021

Merged as 2cc1fec

@cmouse cmouse closed this Feb 3, 2021
@pghmcfc pghmcfc deleted the timeval_cmp_margin-32bit branch February 3, 2021 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants