diff options
author | 卜部昌平 <[email protected]> | 2020-04-08 13:28:13 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-08 13:28:13 +0900 |
commit | 9e6e39c3512f7a962c44dc3729c98a0f8be90341 (patch) | |
tree | 901a22676d54d78240e450b64a8cd06eb1703910 /internal/hash.h | |
parent | 5ac4bf2cd87e1eb5779ca5ae7f96a1a22e8436d9 (diff) |
Merge pull request #2991 from shyouhei/ruby.h
Split ruby.h
Notes
Notes:
Merged-By: shyouhei <[email protected]>
Diffstat (limited to 'internal/hash.h')
-rw-r--r-- | internal/hash.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/hash.h b/internal/hash.h index 90a27fd189..4c2e663a65 100644 --- a/internal/hash.h +++ b/internal/hash.h @@ -1,17 +1,17 @@ -#ifndef INTERNAL_HASH_H /* -*- C -*- */ -#define INTERNAL_HASH_H -/** +/** \noop-*-C-*-vi:ft=c * @file - * @brief Internal header for Hash. - * @author \@shyouhei + * @author Ruby developers <[email protected]> * @copyright This file is a part of the programming language Ruby. * Permission is hereby granted, to either redistribute and/or * modify this file, provided that the conditions mentioned in the * file COPYING are met. Consult the file for details. + * @brief Internal header for Hash. */ -#include "ruby/config.h" +#ifndef INTERNAL_HASH_H +#define INTERNAL_HASH_H +#include "ruby/3/config.h" #include <stddef.h> /* for size_t */ -#include "internal/stdbool.h" /* for bool */ +#include "ruby/3/stdbool.h" /* for bool */ #include "ruby/ruby.h" /* for struct RBasic */ #include "ruby/st.h" /* for struct st_table */ @@ -200,9 +200,9 @@ RHASH_ST_CLEAR(VALUE h) static inline unsigned RHASH_AR_TABLE_SIZE_RAW(VALUE h) { - unsigned ret = FL_TEST_RAW(h, RHASH_AR_TABLE_SIZE_MASK); + VALUE ret = FL_TEST_RAW(h, RHASH_AR_TABLE_SIZE_MASK); ret >>= RHASH_AR_TABLE_SIZE_SHIFT; - return ret; + return (unsigned)ret; } static inline bool |