Skip to content

Commit a8110bf

Browse files
authored
riscv-cc: Rename variables in flattening example to avoid confusion
The use of f and g to mean different things is highly confusing. See #366 Signed-off-by: Jessica Clarke <[email protected]>
1 parent 9a77e88 commit a8110bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv-cc.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ floating-point registers than the ABI.
224224

225225
For the purposes of this section, "struct" refers to a C struct with its
226226
hierarchy flattened, including any array fields. That is, `struct { struct
227-
{ float f[1]; } g[2]; }` and `struct { float f; float g; }` are
227+
{ float f[1]; } a[2]; }` and `struct { float f0; float f1; }` are
228228
treated the same. Fields containing empty structs or unions are ignored while
229229
flattening, even in {Cpp}, unless they have nontrivial copy constructors or
230230
destructors. Fields containing zero-length bit-fields are ignored while

0 commit comments

Comments
 (0)