facebookincubator / cinder

Cinder is Meta's internal performance-oriented production version of CPython.
https://trycinder.com
Other
3.43k stars 122 forks source link

Seg fault indexing float chkdict with int key #34

Closed DinoV closed 5 months ago

DinoV commented 3 years ago

This should report an error, not crash:

from __static__ import CheckedDict

def main():
    d = CheckedDict[float, str]({2.0: "hello", 2.3: "foobar"})
    print(d[2])
    return

main()
carljm commented 5 months ago

This should be fixed now.