8000 Fix a minor compilation issue with clang 17. by cassandras-lies · Pull Request #1616 · firoorg/firo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix a minor compilation issue with clang 17. #1616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/fixed.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ class Fixed : boost::operators<Fixed<I,F> >, boost::shiftable<Fixed<I,F> > {

public:
static const std::size_t base_size = base_type_info::size;
static const base_type fractional_mask = ~((~base_type(0)) << fractional_bits);
static const base_type integer_mask = ~fractional_mask;
static const base_type fractional_mask;
static const base_type integer_mask;

public:
static const base_type << fractional_bits;
Expand Down Expand Up @@ -435,6 +435,14 @@ const std::size_t Fixed<I,F>::integer_bits;
template <std::size_t I, std::size_t F>
const std::size_t Fixed<I,F>::total_bits;

template <std::size_t I, std::size_t F>
const typename Fixed<I, F>::base_type Fixed<I, F>::fractional_mask =
~((~typename Fixed<I, F>::base_type()) << Fixed<I, F>::fractional_bits);

template <std::size_t I, std::size_t F>
const typename Fixed<I, F>::base_type Fixed<I, F>::integer_mask =
~Fixed<I, F>::fractional_mask;

}
#endif

Loading
0