From 08f66585b7fc8cca9cb8db4891e6382fdebd9353 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 9 Oct 2022 13:42:51 +0200 Subject: [PATCH] - un-deprecated the integer MSTime variant. Due to undefined downconversion rules from double to int, there is no way to safely downcast the return from MSTimef, meaning the function is completely useless for retrieving integral time stamps. The old version is essential for these cases and must be kept around. --- wadsrc/static/zscript/engine/base.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/engine/base.zs b/wadsrc/static/zscript/engine/base.zs index 0dbb86811..d61028222 100644 --- a/wadsrc/static/zscript/engine/base.zs +++ b/wadsrc/static/zscript/engine/base.zs @@ -722,7 +722,7 @@ class Object native private native static Class BuiltinNameToClass(Name nm, Class filter); private native static Object BuiltinClassCast(Object inptr, Class test); - deprecated("4.8", "Use MSTimeF instead") native static uint MSTime(); + native static uint MSTime(); native static double MSTimeF(); native vararg static void ThrowAbortException(String fmt, ...);