X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fpic16%2Fdevice.c;h=66ee6f3c587c7f0766c56e8adfcd55f16c13f536;hb=9b2b571cf5f801bd3e2e3b6c6907aa36f7aebf94;hp=e8ce0575348db29e10f3a48d83d673196f21ced0;hpb=30eb07c64a01ef625a0883ef5349d82cd5daf0df;p=fw%2Fsdcc diff --git a/src/pic16/device.c b/src/pic16/device.c index e8ce0575..66ee6f3c 100644 --- a/src/pic16/device.c +++ b/src/pic16/device.c @@ -250,7 +250,7 @@ void pic16_dump_gsection(FILE *of, set *sections) /* forward declaration */ void pic16_printIval(symbol * sym, sym_link * type, initList * ilist, char ptype, void *p); -extern void pic16_pCodeConstString(char *name, char *value); +extern void pic16_pCodeConstString(char *name, char *value, unsigned length); void pic16_dump_isection(FILE *of, set *section, int fix) { @@ -290,7 +290,7 @@ void pic16_dump_isection(FILE *of, set *section, int fix) && SPEC_CVAL (s->etype).v_char) { // fprintf(stderr, "%s:%d printing code string from %s\n", __FILE__, __LINE__, s->rname); - pic16_pCodeConstString(s->rname , SPEC_CVAL (s->etype).v_char); + pic16_pCodeConstString(s->rname , SPEC_CVAL (s->etype).v_char, getSize(s->type)); } else { assert(0); } @@ -324,7 +324,7 @@ void pic16_dump_isection(FILE *of, set *section, int fix) && SPEC_CVAL (s->etype).v_char) { // fprintf(stderr, "%s:%d printing code string from %s\n", __FILE__, __LINE__, s->rname); - pic16_pCodeConstString(s->rname , SPEC_CVAL (s->etype).v_char); + pic16_pCodeConstString(s->rname , SPEC_CVAL (s->etype).v_char, getSize(s->type)); } else { assert(0); }