diff --git a/hls4ml/templates/vivado/nnet_utils/nnet_mult.h b/hls4ml/templates/vivado/nnet_utils/nnet_mult.h index 0de1c5a24..6a91ad431 100644 --- a/hls4ml/templates/vivado/nnet_utils/nnet_mult.h +++ b/hls4ml/templates/vivado/nnet_utils/nnet_mult.h @@ -90,13 +90,13 @@ class weight_exponential : public Product{ template inline typename std::enable_if>::value - and std::is_same>::value, ap_int>::type + && std::is_same>::value, ap_int>::type cast(typename CONFIG_T::accum_t x){ return (ap_int) (x - CONFIG_T::n_in / 2) * 2; } template -inline typename std::enable_if<(not std::is_same>::value), res_T>::type +inline typename std::enable_if<(! std::is_same>::value), res_T>::type cast(typename CONFIG_T::accum_t x){ return (res_T) x; }