Skip to content
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
6 changes: 3 additions & 3 deletions include/core-util/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ namespace math
}

template<class T>
inline T nextLargeestPow2(T x) {
inline T nextLargestPow2(T x) {
x |= (x >> 1);
x |= (x >> 2);
x |= (x >> 4);
Expand Down Expand Up @@ -308,7 +308,7 @@ namespace math
return dis(gen);
}

//! flips a coin: 50% chance to retrun true; otherwise false
//! flips a coin: 50% chance to return true; otherwise false
inline bool randomCointoss() {
if (randomUniform(0.0f, 1.0f) > 0.5f) return false; //there may be some bias
else return true;
Expand Down Expand Up @@ -428,7 +428,7 @@ namespace util

inline void runSystemCommand(const std::string &s)
{
//TODO fix it: this should in theroy call s = util::replace(s, "/", "\\");
//TODO fix it: this should in theory call s = util::replace(s, "/", "\\");
system(s.c_str());
}

Expand Down
2 changes: 1 addition & 1 deletion include/mLibOpenMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//#define OM_STATIC_BUILD
//#endif

//This is pretty bad design choice to define it here because it will cause different behaviror if math.h was included before...
//This is pretty bad design choice to define it here because it will cause different behaviour if math.h was included before...
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
Expand Down