Misc fixes (#1103)

* DiskImage: match new[] with delete[]

Signed-off-by: Sven Schnelle <fz@stackframe.org>

* st_tos: match new[] with delete[]

Signed-off-by: Sven Schnelle <fz@stackframe.org>

* scaler: fix calloc arguments

The first argument is the number of members, the second
argument the size of each member. Swap the arguments to
the correct order to prevent warings with newer compilers.

Signed-off-by: Sven Schnelle <fz@stackframe.org>

---------

Signed-off-by: Sven Schnelle <fz@stackframe.org>
This commit is contained in:
funkenzuzzler
2026-02-24 11:57:25 +01:00
committed by GitHub
parent 7114bd2ac5
commit cbea89aa6b
3 changed files with 51 additions and 51 deletions

View File

@@ -22,7 +22,7 @@ with help from the MiSTer contributors including Grabulosaure
mister_scaler * mister_scaler_init()
{
mister_scaler *ms =(mister_scaler *) calloc(sizeof(mister_scaler),1);
mister_scaler *ms = (mister_scaler *)calloc(1, sizeof(mister_scaler));
int pagesize = sysconf(_SC_PAGE_SIZE);
if (pagesize==0) pagesize=4096;
int offset = MISTER_SCALER_BASEADDR;