1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 01:31:42 +00:00

Picks a better function name.

This commit is contained in:
Thomas Harte 2019-07-30 10:54:56 -04:00
parent 0521de668a
commit d8a41575c8

View File

@ -153,7 +153,7 @@ template <class T> class WrappedInt {
// Jiggery pokery here; switching to function overloading avoids
// the namespace-level requirement for template specialisation.
Result r;
static_cast<T *>(this)->fill_flush(r);
static_cast<T *>(this)->fill(r);
return r;
}
@ -173,7 +173,7 @@ class Cycles: public WrappedInt<Cycles> {
private:
friend WrappedInt;
void fill_flush(Cycles &result) {
void fill(Cycles &result) {
result.length_ = length_;
length_ = 0;
}
@ -206,12 +206,12 @@ class HalfCycles: public WrappedInt<HalfCycles> {
private:
friend WrappedInt;
void fill_flush(Cycles &result) {
void fill(Cycles &result) {
result = Cycles(length_ >> 1);
length_ &= 1;
}
void fill_flush(HalfCycles &result) {
void fill(HalfCycles &result) {
result.length_ = length_;
length_ = 0;
}