From f48e1e26c35ba5ec6f88d21133bc6ace072a1236 Mon Sep 17 00:00:00 2001 From: herbert Date: Sat, 21 Aug 2004 10:07:12 +1000 Subject: Fixed signed char promotion in src/expand.c. --- ChangeLog | 1 + src/expand.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6d1fd04..ad80806 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2004-08-21 Herbert Xu * Size optimisations around varvalue() in src/expand.c. + * Fixed signed char promotion in src/expand.c. 2004-08-18 Herbert Xu diff --git a/src/expand.c b/src/expand.c index 7d7f815..1debde9 100644 --- a/src/expand.c +++ b/src/expand.c @@ -131,7 +131,7 @@ STATIC void expbackq(union node *, int, int); STATIC const char *subevalvar(char *, char *, int, int, int, int, int); STATIC char *evalvar(char *, int); STATIC size_t strtodest(const char *, const char *, int); -STATIC void memtodest(const char *, size_t, const char *, int); +STATIC void memtodest(const unsigned char *, size_t, const char *, int); STATIC ssize_t varvalue(char *, int, int); STATIC void recordregion(int, int, int); STATIC void removerecordregions(int); @@ -887,7 +887,7 @@ end: */ STATIC void -memtodest(const char *p, size_t len, const char *syntax, int quotes) { +memtodest(const unsigned char *p, size_t len, const char *syntax, int quotes) { char *q; if (unlikely(!len)) -- cgit 1.4.1 87e9ea6e3eba6a7701e616bf33c5f&follow=1'>diff
Commit message (Expand)Author
2021-01-01Clean up order lexerJune McEnroe
2021-01-01Remove empty comma statement from bitJune McEnroe
2021-01-01Increment license header templatesJune McEnroe
2020-12-31Tell "Music" rather than "iTunes"June McEnroe
2020-12-31Add ASCII control code names to bitJune McEnroe
2020-12-31Simplify bit lexing and parsingJune McEnroe
2020-12-31Add ddateJune McEnroe
2020-12-30Print octal for 8 bits in bitJune McEnroe
2020-12-30Add unary & to bitJune McEnroe
2020-12-30Support unary + in orderJune McEnroe
2020-12-30Add postfix $ operator to bitJune McEnroe
2020-12-29Add make lexerJune McEnroe
2020-12-29Clean up C lexerJune McEnroe
2020-12-29Clean up hilex code somewhatJune McEnroe
2020-12-29Match lex/yacc %% %{ %} lines as MacroJune McEnroe
2020-12-29Match top-level C definitions as IdentifierTagJune McEnroe
2020-12-29Match C type declarations as IdentifierTagJune McEnroe
2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe
2020-12-29Reconfigure C macro start conditionsJune McEnroe
2020-12-29Document HTML class namesJune McEnroe
2020-12-29Rename Tag class to IdentifierTagJune McEnroe
2020-12-29Change HTML class from hi to hilexJune McEnroe
2020-12-29Add hilex HTML outputJune McEnroe