diff --git a/epyt/__init__.py b/epyt/__init__.py index 990172d..60ff64f 100644 --- a/epyt/__init__.py +++ b/epyt/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- __author__ = """Marios S. Kyriakou""" __email__ = "kiriakou.marios@ucy.ac.cy" -__version__ = "1.1.0" +__version__ = "1.1.1" __msxversion__ = "2.0.0" __copyright__ = """Copyright 2022, KIOS Research and Innovation Center of Excellence (KIOS CoE), University of Cyprus (www.kios.org.cy).""" diff --git a/epyt/epanet.py b/epyt/epanet.py index 10c90c6..5e964fd 100644 --- a/epyt/epanet.py +++ b/epyt/epanet.py @@ -16202,8 +16202,12 @@ def MSXstep(self): t : current simulation time at the end of the step(in secconds) tleft: time left in the simulation (in secconds) """ - t = c_long() - tleft = c_long() + if platform.system().lower() in ["windows"]: + t = c_double() + tleft = c_double() + else: + t = c_double() + tleft = c_long() err = self.msx_lib.MSXstep(byref(t), byref(tleft)) if err: