Skip to content

Commit 9a0a358

Browse files
committed
24.8.1
[Engine] * Windows and linux compiler warnings and errors fixed.
1 parent f0332d0 commit 9a0a358

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

src/crypt.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static const string CryptBin2HexL(const MemConst &mcSrc)
206206
{ return CryptBin2HexL(mcSrc.MemPtr<uint8_t>(), mcSrc.MemSize()); }
207207
/* ------------------------------------------------------------------------- */
208208
void CryptAddEntropyPtr(const void*const vpPtr, const size_t stSize)
209-
{ RAND_add(vpPtr, stSize, static_cast<double>(stSize)); }
209+
{ RAND_add(vpPtr, UtilIntOrMax<int>(stSize), static_cast<double>(stSize)); }
210210
/* ------------------------------------------------------------------------- */
211211
template<typename IntType>void CryptAddEntropyInt(const IntType itValue)
212212
{ CryptAddEntropyPtr(&itValue, sizeof(itValue)); }

src/fontglph.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ template<class StrokerFuncType>
211211
function<decltype(FT_Done_Glyph)>> GlyphPtr;
212212
if(GlyphPtr gPtr{ gData, FT_Done_Glyph })
213213
{ // Apply glyph border if requested
214-
cFreeType->CheckError(StrokerFuncType(gData,
215-
ftfData.GetStroker()).Result(),
214+
cFreeType->CheckError(StrokerFuncType{ gData,
215+
ftfData.GetStroker() }.Result(),
216216
"Failed to apply outline to glyph!",
217217
"Identifier", IdentGet(), "Glyph", stChar);
218218
// Convert The Glyph To A Image.

src/llcommon.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#pragma once // Only one incursion allowed
1010
/* ------------------------------------------------------------------------- */
1111
namespace Common { // Common namespace
12+
/* -- Dependencies --------------------------------------------------------- */
13+
using namespace IStd::P;
1214
/* -- Read a LString ------------------------------------------------------- */
1315
struct AgLCString { size_t stB; const char *cpD;
1416
explicit AgLCString(lua_State*const lS, const int iArg) :

src/lldisplay.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ LLFUNC(SetInterval, 1, cTimer->TimerSetInterval(AgUInt64LG{lS, 1,
226226
// ? for widescreen window sizes.
227227
/* ------------------------------------------------------------------------- */
228228
LLFUNC(SetMatrix, 0,
229-
const AgTextureDimension aWidth{lS, 1},
230-
aHeight{lS, 2};
229+
const AgNumberL aWidth{lS, 1, 1.0f},
230+
aHeight{lS, 2, 1.0f};
231231
cFboCore->AutoMatrix(aWidth, aHeight, false))
232232
/* ========================================================================= */
233233
// $ Display.SetPos

src/msengine.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#define VER_NAME "MS-Engine" // Name of engine
1212
#define VER_AUTHOR "MS-Design" // Author of engine
1313
#define VER_MAJOR 24 // Version major (year)
14-
#define VER_MINOR 7 // Version minor (month)
15-
#define VER_BUILD 29 // Version build (day)
16-
#define VER_REV 4 // Version rev (build#)
17-
#define VER_STR_NQ 24,7,29,4 // Version as literal
18-
#define VER_STR "24.7.29.4" // Version as string
19-
#define VER_DATE "Mon Jul 29 21:02:32 2024 +0100" // Compilation date
14+
#define VER_MINOR 8 // Version minor (month)
15+
#define VER_BUILD 1 // Version build (day)
16+
#define VER_REV 17 // Version rev (build#)
17+
#define VER_STR_NQ 24,8,1,17 // Version as literal
18+
#define VER_STR "24.8.1.17" // Version as string
19+
#define VER_DATE "Thu Aug 01 14:20:18 2024 +0100" // Compilation date
2020
/* == EoF =========================================================== EoF == */

0 commit comments

Comments
 (0)