Skip to content
Snippets Groups Projects
Commit 4a698414 authored by Brad King's avatar Brad King
Browse files

hashtable: Give prime number table functions internal linkage


Match the linkage of the data they reference.

Suggested-by: default avatarMark Millard <markmi@dsl-only.net>
Change-Id: I379cf9bb4519a87651ad05c1dfc2a6bfd43ec0ff
parent 4890f30c
No related branches found
No related tags found
No related merge requests found
......@@ -408,7 +408,7 @@ enum { _stl_num_primes = 31 };
// create a function with a static local to that function that returns
// the static
inline const unsigned long* get_stl_prime_list() {
static inline const unsigned long* get_stl_prime_list() {
static const unsigned long _stl_prime_list[_stl_num_primes] =
{
......@@ -423,7 +423,7 @@ static const unsigned long _stl_prime_list[_stl_num_primes] =
return &_stl_prime_list[0]; }
inline size_t _stl_next_prime(size_t __n)
static inline size_t _stl_next_prime(size_t __n)
{
const unsigned long* __first = get_stl_prime_list();
const unsigned long* __last = get_stl_prime_list() + (int)_stl_num_primes;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment