Skip to content

Commit

Permalink
Fix: Review and address Use parentheses within macros around paramete…
Browse files Browse the repository at this point in the history
…r names

bug fix

bug fix
  • Loading branch information
anandamideShakyan committed Dec 10, 2024
1 parent 4cffa4b commit cb49aa9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion velox/common/base/SpillStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ bool SpillStats::operator<(const SpillStats& other) const {
} else if (counter > other.counter) { \
++gtCount; \
} \
} while (0);
} while (0)

UPDATE_COUNTER(spillRuns);
UPDATE_COUNTER(spilledInputBytes);
Expand Down
4 changes: 2 additions & 2 deletions velox/core/Metaprogramming.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ struct has_method {
-> decltype(std::declval<__T>().MethodName(args...)) { \
return {}; \
} \
};
}

// Calling Name::resolve<T>::type will return T::TypeName if T::TypeName
// exists, and otherwise will return T::OtherTypeName (it's existence is not
Expand All @@ -169,5 +169,5 @@ struct has_method {
std::void_t<decltype(sizeof(typename __T::TypeName))>> { \
using type = typename __T::TypeName; \
}; \
};
}
} // namespace facebook::velox::util
2 changes: 1 addition & 1 deletion velox/tpch/gen/dbgen/build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace facebook::velox::tpch::dbgen {
#define V_STR(avg, seed, tgt) \
tpch_a_rnd((int)(avg * V_STR_LOW), (int)(avg * V_STR_HGH), seed, tgt)
#define TEXT(avg, seed, tgt) \
dbg_text(tgt, (int)(avg * V_STR_LOW), (int)(avg * V_STR_HGH), seed)
dbg_text(tgt, static_cast<int>((avg) * V_STR_LOW), static_cast<int>((avg) * V_STR_HGH), seed)
static void gen_phone PROTO((DSS_HUGE ind, char* target, seed_t* seed));

DSS_HUGE
Expand Down

0 comments on commit cb49aa9

Please sign in to comment.