Skip to content

style: resolve -Wreorder #2950

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
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion ciphers/uint256_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class uint256_t {
*/
template <typename T, typename = typename std::enable_if<
std::is_integral<T>::value, T>::type>
explicit uint256_t(T low) : s(low), f(0) {}
explicit uint256_t(T low) : f(0), s(low) {}

/**
* @brief Parameterized constructor
Expand Down
2 changes: 1 addition & 1 deletion data_structures/stack_using_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Stack {
*
* @param size Maximum size of the stack
*/
Stack(int size) : stackSize(size), stackIndex(-1), stack(new T[size]) {}
Stack(int size) : stack(new T[size]), stackSize(size), stackIndex(-1) {}

/**
* @brief Checks if the stack is full
Expand Down
6 changes: 3 additions & 3 deletions data_structures/tree_234.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class Node {
* @param item the first value we insert to the node
*/
explicit Node(int64_t item)
: count(1),
items({{item, 0, 0}}),
children({{nullptr, nullptr, nullptr, nullptr}}) {}
: items({{item, 0, 0}}),
children({{nullptr, nullptr, nullptr, nullptr}}),
count(1) {}

/**
* @brief Get the item count that current saved in the node
Expand Down
Loading