From 04d3b0fa096c8530c72a6db417012e46e338eb2b Mon Sep 17 00:00:00 2001 From: Neal Richardson Date: Tue, 17 Sep 2019 16:00:07 -0700 Subject: [PATCH] =?UTF-8?q?Apply=20Fran=C3=A7ois's=20UBSAN=20fix=20[skip?= =?UTF-8?q?=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- r/src/array__to_vector.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/r/src/array__to_vector.cpp b/r/src/array__to_vector.cpp index 7fcb02bef3cb2..eaebfd6ff30fc 100644 --- a/r/src/array__to_vector.cpp +++ b/r/src/array__to_vector.cpp @@ -457,7 +457,7 @@ class Converter_Promotion : public Converter { } }; -template +template class Converter_Time : public Converter { public: explicit Converter_Time(const ArrayVector& arrays) : Converter(arrays) {} @@ -485,7 +485,7 @@ class Converter_Time : public Converter { private: int TimeUnit_multiplier(const std::shared_ptr& array) const { - switch (static_cast(array->type().get())->unit()) { + switch (static_cast(array->type().get())->unit()) { case TimeUnit::SECOND: return 1; case TimeUnit::MILLI: @@ -501,10 +501,10 @@ class Converter_Time : public Converter { }; template -class Converter_Timestamp : public Converter_Time { +class Converter_Timestamp : public Converter_Time { public: explicit Converter_Timestamp(const ArrayVector& arrays) - : Converter_Time(arrays) {} + : Converter_Time(arrays) {} SEXP Allocate(R_xlen_t n) const { Rcpp::NumericVector data(no_init(n));