diff options
author | 卜部昌平 <[email protected]> | 2021-05-07 12:49:32 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2021-05-12 10:30:46 +0900 |
commit | cc0dc67bbbe1951ff90004bc987f78545625d772 (patch) | |
tree | b6bf1c68d335875409ecd96bf56ef6e5dec64f92 /internal/complex.h | |
parent | d0e6c6e682b9ba2b0309a5177933a0628e8ef316 (diff) |
cdhash_cmp: can also take complex
There are complex literals `123i`, which can also be a case condition.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4469
Diffstat (limited to 'internal/complex.h')
-rw-r--r-- | internal/complex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/complex.h b/internal/complex.h index 6f63a9ebeb..9eae804ddb 100644 --- a/internal/complex.h +++ b/internal/complex.h @@ -25,5 +25,6 @@ struct RComplex { /* complex.c */ VALUE rb_dbl_complex_new_polar_pi(double abs, double ang); +st_index_t rb_complex_hash(VALUE comp); #endif /* INTERNAL_COMPLEX_H */ |