fix warnings caused by sprintf()

note :
%hhu is C99, old mingw32 compiler complains about it
This commit is contained in:
Thomas Bernard
2019-07-24 03:04:08 +02:00
parent b5751ebda8
commit 848ec95e92
8 changed files with 29 additions and 43 deletions

View File

@@ -134,7 +134,7 @@ void Atari_Memory_free(unsigned long *stRam,unsigned long *ttRam);
#else
unsigned long Memory_free(void);
#endif
#define Num2str(a,b,c) sprintf(b,"%*lu",c,(long)(a))
#define Num2str(a,b,c) snprintf(b,sizeof(b),"%*lu",(int)c,(unsigned long)(a))
#define Dec2str(a,b,c) sprintf(b,"%.*f",c,(double)(a))