I refined the fix in sccz80::primary.c for the double* problem so that previously reported problems with pointer casting should also now work.
The test code cases are:
1. printf of float with classic library
2. Testcase:
#define BIFROSTSPRITE1LIN ((unsigned char *)58056)
int main()
{
*BIFROSTSPRITE1LIN = 100;
}
3.
char *a;
main()
{
static char *c;
int *b;
b = (int *)(a);
b = ((int *)c);
}
Maybe keep an eye on it tonight to see if something else isn't right.
------------------------------------------------------------------------------
[z88dk-dev] refined fix for "*(double *)var" in vfprintf
Wow, that was a tricky one.. if you were able to fix it you have all my admirationI refined the fix in sccz80::primary.c for the double* problem so that previously reported problems with pointer casting should also now work.
------------------------------------------------------------------------------