mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: disallow pointer arithmetic for AssignStmt, PostfixExpr outside unsafe{} (#5581)
This commit is contained in:
@ -234,7 +234,9 @@ pub fn (s Socket) send(buf byteptr, len int) ?int {
|
||||
if dlen <= 0 {
|
||||
break
|
||||
}
|
||||
dptr += sbytes
|
||||
unsafe {
|
||||
dptr += sbytes
|
||||
}
|
||||
}
|
||||
return len
|
||||
}
|
||||
|
Reference in New Issue
Block a user