Skip to content

Conversation

mroeschke
Copy link
Member

Trying to get a Cython reproducer for #61249

@mroeschke mroeschke added the Build Library building on various platforms label Apr 9, 2025
@mroeschke
Copy link
Member Author

mroeschke commented Apr 9, 2025

First piece of repro from 8837a71

cpdef timedelta debug_2():
    cdef int64_t val = -420000000000
    us, remainder = divmod(val, 1000)
    if remainder >= 500:
        us += 1
    return timedelta(microseconds=us)

Windows 3.13t: datetime.timedelta(microseconds=906795)
Other Platforms: datetime.timedelta(days=-1, seconds=85980)

@mroeschke
Copy link
Member Author

Opened cython/cython#6786 as a result of this investigation so closing

@mroeschke mroeschke closed this Apr 9, 2025
@mroeschke mroeschke deleted the debug/cython branch April 9, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Library building on various platforms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant