mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
net: add unsafe block to int -> enum cast (#15961)
Fixes https://github.com/vlang/v/issues/15959
This commit is contained in:
parent
6ac9552d39
commit
267e26ba1d
1 changed files with 1 additions and 1 deletions
|
@ -736,7 +736,7 @@ pub enum WsaError {
|
||||||
|
|
||||||
// wsa_error casts an int to its WsaError value
|
// wsa_error casts an int to its WsaError value
|
||||||
pub fn wsa_error(code int) WsaError {
|
pub fn wsa_error(code int) WsaError {
|
||||||
return WsaError(code)
|
return unsafe { WsaError(code) }
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue