mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
lang: add read-only type decorators
This commit is contained in:
1 parent
6e8349129c
commit
f3caf09d77
14 files changed
+132
-77
No files matched your search
@@ -136,7 +136,7 @@ func (g *gen) writeStatementAssign1(b *buffer, op t.ID, lhs *a.Expr, rhs *a.Expr
|
||||
return err
|
||||
}
|
||||
|
||||
if lTyp := lhs.MType(); lTyp.IsArrayType() {
|
||||
if lTyp := lhs.MType(); lTyp.IsEitherArrayType() {
|
||||
b.writes("memcpy(")
|
||||
opName, closer = ",", fmt.Sprintf(", sizeof(%s))", lhsBuf)
|
||||
|
||||
|
||||
Reference in new issue
Block a user