Skip to content

BUG: type-unsafe Cython C functions calls in RNG interface #30578

@ngoldbaum

Description

@ngoldbaum

Cython 3.2.4 came out yesterday and our CI started failing:

Error: Disallowed warnings detected:
  numpy/random/_generator.cp312-win32.pyd.p/numpy/random/_generator.pyx.c(26344): warning C4244: 'function': conversion from 'int64_t' to 'double', possible loss of data
  numpy/random/_generator.cp312-win32.pyd.p/numpy/random/_generator.pyx.c(38368): warning C4244: 'function': conversion from 'int64_t' to 'double', possible loss of data

https://github.com/numpy/numpy/actions/runs/20717331262/job/59471608457

Someone should investigate whether this is a bug in Cython or Cython is now newly catching an issue in NumPy's RNG code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions