Skip to content

Commit 1594b17

Browse files
author
Ben Krieger
committed
Ensure converted array is RO
1 parent 4adcc42 commit 1594b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ func convertOp(src Value, typ Type) (Value, bool) {
13451345
return Value{
13461346
typecode: rtype,
13471347
value: (*sliceHeader)(src.value).data,
1348-
flags: src.flags | valueFlagIndirect,
1348+
flags: src.flags | valueFlagIndirect | valueFlagRO,
13491349
}, true
13501350
}
13511351
case Pointer:

0 commit comments

Comments
 (0)