X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fprintf_large.c;h=f7be3aadd7ba43c0de906922939905e2b1de9af5;hb=1bb6a9b476754a7dd750c60972bbefe75c218f68;hp=af2a3f6b29500fe3df1350398d2bd08db4ec3b26;hpb=f1007d04010ff2955d4d962c89616311ff4719d6;p=fw%2Fsdcc diff --git a/device/lib/printf_large.c b/device/lib/printf_large.c index af2a3f6b..f7be3aad 100644 --- a/device/lib/printf_large.c +++ b/device/lib/printf_large.c @@ -44,8 +44,10 @@ #if defined (SDCC_mcs51) && defined (SDCC_MODEL_SMALL) && !defined (SDCC_STACK_AUTO) # define MEM_SPACE_BUF __idata +# define MEM_SPACE_BUF_PP __idata #else # define MEM_SPACE_BUF +# define MEM_SPACE_BUF_PP _AUTOMEM #endif /****************************************************************************/ @@ -666,7 +668,7 @@ get_conversion_spec: // Apparently we have to output an integral type // with radix "radix" unsigned char MEM_SPACE_BUF store[6]; - unsigned char MEM_SPACE_BUF *pstore = &store[5]; + unsigned char MEM_SPACE_BUF_PP *pstore = &store[5]; // store value in byte[0] (LSB) ... byte[3] (MSB) if (char_argument)