[Scummvm-git-logs] scummvm master -> 43fbf3ea16217b745029ef1ad28da5b8c6575d21

ccawley2011 ccawley2011 at gmail.com
Wed Jun 16 12:48:57 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
43fbf3ea16 AGS: Restore missing definition for INFINITY


Commit: 43fbf3ea16217b745029ef1ad28da5b8c6575d21
    https://github.com/scummvm/scummvm/commit/43fbf3ea16217b745029ef1ad28da5b8c6575d21
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2021-06-16T13:48:39+01:00

Commit Message:
AGS: Restore missing definition for INFINITY

Originally added in commit c703825.

Changed paths:
    engines/ags/lib/std/math.h


diff --git a/engines/ags/lib/std/math.h b/engines/ags/lib/std/math.h
index 16275d00c0..f3e5990dbc 100644
--- a/engines/ags/lib/std/math.h
+++ b/engines/ags/lib/std/math.h
@@ -29,6 +29,11 @@
 namespace AGS3 {
 namespace std {
 
+// Not all platforms define INFINITY
+#ifndef INFINITY
+#define INFINITY   ((float)(1e+300 * 1e+300)) // This must overflow
+#endif
+
 #define FLOAT_UNASSIGNED (float)999999.0
 
 template<class T>




More information about the Scummvm-git-logs mailing list