Skip to content

Commit

Permalink
Removed compilator warnings (ppwwyyxx#108)
Browse files Browse the repository at this point in the history
* Removed compilator warnings

* Reverting changes

* Compilation warnings fixed
  • Loading branch information
sisco0 committed Sep 8, 2020
1 parent 81e7d28 commit 024b961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/feature/gaussian.hh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class GaussianBlur {
// apply to rows
REP(i, h) {
T *dest = ret.ptr(i);
memcpy(cur_line, dest, sizeof(T) * w);
memcpy((void *)cur_line, (void *)dest, sizeof(T) * w);
{ // pad the border
T v0 = cur_line[0];
for (int j = 1; j <= center; j ++)
Expand Down
2 changes: 2 additions & 0 deletions src/lib/geometry.hh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class Vector {
constexpr explicit Vector(T m_x = 0, T m_y = 0, T m_z = 0):
x(m_x), y(m_y), z(m_z) {}

constexpr Vector(const Vector<T> &rhs) = default;

Vector(const Vector &p0, const Vector &p1):
x(p1.x - p0.x), y(p1.y -p0.y), z(p1.z - p0.z) {}

Expand Down

0 comments on commit 024b961

Please sign in to comment.