Skip to content

Commit

Permalink
fix: Make calculateFibonacci non const
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Aug 5, 2024
1 parent 7f2ccbe commit 14435b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-nitro-image/cpp/HybridTestObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class HybridTestObject : public HybridTestObjectSpec {
std::tuple<double, std::string> _tuple;

private:
static inline uint64_t calculateFibonacci(int count) const noexcept {
static inline uint64_t calculateFibonacci(int count) noexcept {
if (count <= 0) [[unlikely]]
return 0;
if (count == 1) [[unlikely]]
Expand Down

0 comments on commit 14435b5

Please sign in to comment.