[Scummvm-git-logs] scummvm master -> 1fc80ff666fa2fe565032af22f21332b13a2812d

sev- noreply at scummvm.org
Tue May 14 21:11:24 UTC 2024


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:
1fc80ff666 DIRECTOR: Fix compilation on some platforms


Commit: 1fc80ff666fa2fe565032af22f21332b13a2812d
    https://github.com/scummvm/scummvm/commit/1fc80ff666fa2fe565032af22f21332b13a2812d
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-05-14T23:11:01+02:00

Commit Message:
DIRECTOR: Fix compilation on some platforms

Changed paths:
    engines/director/util.cpp
    engines/director/util.h


diff --git a/engines/director/util.cpp b/engines/director/util.cpp
index c301f2524c8..f444a0a005d 100644
--- a/engines/director/util.cpp
+++ b/engines/director/util.cpp
@@ -1653,10 +1653,11 @@ void DirectorEngine::delayMillis(uint32 delay) {
 
 } // End of namespace Director
 
-double readAppleFloat80(byte *ptr) {
+double readAppleFloat80(void *ptr_) {
 	// Floats in an "80 bit IEEE Standard 754 floating
 	// point number (Standard Apple Numeric Environment [SANE] data type
 	// Extended).
+	byte *ptr = (byte *)ptr_;
 
 	uint16 signAndExponent = READ_BE_UINT16(&ptr[0]);
 	uint64 mantissa = READ_BE_UINT64(&ptr[2]);
diff --git a/engines/director/util.h b/engines/director/util.h
index 82acc17127a..5e962bde558 100644
--- a/engines/director/util.h
+++ b/engines/director/util.h
@@ -137,6 +137,6 @@ inline void lerpPalette(byte *target, byte *palA, int palALength, byte *palB, in
 
 } // End of namespace Director
 
-double readAppleFloat80(byte *ptr);
+double readAppleFloat80(void *ptr);
 
 #endif




More information about the Scummvm-git-logs mailing list