Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6568ab9

Browse files
vil02realstealthninja
andauthored
style: resolve -Wreorder (TheAlgorithms#2950)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
1 parent 13306be commit 6568ab9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎ciphers/uint256_t.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class uint256_t {
7272
*/
7373
template <typename T, typename = typename std::enable_if<
7474
std::is_integral<T>::value, T>::type>
75-
explicit uint256_t(T low) : s(low), f(0) {}
75+
explicit uint256_t(T low) : f(0), s(low) {}
7676

7777
/**
7878
* @brief Parameterized constructor

‎data_structures/stack_using_array.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Stack {
2525
*
2626
* @param size Maximum size of the stack
2727
*/
28-
Stack(int size) : stackSize(size), stackIndex(-1), stack(new T[size]) {}
28+
Stack(int size) : stack(new T[size]), stackSize(size), stackIndex(-1) {}
2929

3030
/**
3131
* @brief Checks if the stack is full

‎data_structures/tree_234.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class Node {
3939
* @param item the first value we insert to the node
4040
*/
4141
explicit Node(int64_t item)
42-
: count(1),
43-
items({{item, 0, 0}}),
44-
children({{nullptr, nullptr, nullptr, nullptr}}) {}
42+
: items({{item, 0, 0}}),
43+
children({{nullptr, nullptr, nullptr, nullptr}}),
44+
count(1) {}
4545

4646
/**
4747
* @brief Get the item count that current saved in the node

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /