Skip to content

Commit

Permalink
Merge pull request #41 from oberbichler/fix/init
Browse files Browse the repository at this point in the history
Fix init by scalar
  • Loading branch information
oberbichler authored Jul 12, 2021
2 parents 23e9306 + 4d532ec commit df91a8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/hyperjet.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <array> // array
#include <assert.h> // assert
#include <cstddef> // ptrdiff_t
Expand Down Expand Up @@ -236,6 +238,7 @@ class DDScalar {
static_assert(TSize >= 0);
}
m_data[0] = f;
std::fill(m_data.begin() + 1, m_data.end(), 0);
}

DDScalar(const Data& data)
Expand Down

0 comments on commit df91a8c

Please sign in to comment.