summaryrefslogtreecommitdiff
path: root/internal/complex.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-05-07 12:49:32 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-05-12 10:30:46 +0900
commitcc0dc67bbbe1951ff90004bc987f78545625d772 (patch)
treeb6bf1c68d335875409ecd96bf56ef6e5dec64f92 /internal/complex.h
parentd0e6c6e682b9ba2b0309a5177933a0628e8ef316 (diff)
downloadruby-cc0dc67bbbe1951ff90004bc987f78545625d772.tar.gz
cdhash_cmp: can also take complex
There are complex literals `123i`, which can also be a case condition.
Diffstat (limited to 'internal/complex.h')
-rw-r--r--internal/complex.h1
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 */