cc1: Fix pointer cast type - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit f41102032108467135842e9f36c4dfd1072c4d62
DIR parent 475fa03250d04142fb1aeb9635ffe7e3eac434c8
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Fri, 30 Jan 2026 17:06:37 +0100
cc1: Fix pointer cast type
Diffstat:
M src/cmd/scc-cc/cc1/code.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR 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);