[564588] Fixes DIV function

DIV function was not properly upgraded to differntiate between scalar values and reference cases

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=564588

Change-Id: I6abf94795b4647c9d6ff210798aab239bc38f5af
Signed-off-by: Martin Melik Merkumians <melik-merkumians@acin.tuwien.ac.at>
diff --git a/src/core/iec61131_functions.h b/src/core/iec61131_functions.h
index af4a948..2f6ea9b 100644
--- a/src/core/iec61131_functions.h
+++ b/src/core/iec61131_functions.h
@@ -484,7 +484,7 @@
 };

 

 template<typename T, typename U> typename forte::core::mpl::get_castable_type<T, U>::type DIV(const T &pa_roIN1, const U &pa_roIN2) {

-  return APPLY_WITH_LITERALS<T, U, DIV_Function>(pa_roIN1, pa_roIN2);

+  return APPLY_WITH_LITERALS<T, U, DIV_Scalar, DIV_Function>(pa_roIN1, pa_roIN2);

 }

 

 template<typename T> const T DIV(const T &pa_roIN1, const T &pa_roIN2) {