scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit f41102032108467135842e9f36c4dfd1072c4d62
parent 475fa03250d04142fb1aeb9635ffe7e3eac434c8
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Fri, 30 Jan 2026 17:06:37 +0100

cc1: Fix pointer cast type

Diffstat:
Msrc/cmd/scc-cc/cc1/code.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/scc-cc/cc1/code.c b/src/cmd/scc-cc/cc1/code.c @@ -232,7 +232,7 @@ emitconst(Node *np) u & ones(tp->size)); break; case FLOAT: - fp = (char *) &sym->u.f; + fp = (unsigned char *) &sym->u.f; if (tp == floattype) n = sizeof(sym->u.f);