mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: implement >= and <= (#7991)
This commit is contained in:
@@ -316,6 +316,8 @@ pub fn replace_op(s string) string {
|
||||
suffix := match s {
|
||||
'==' { '_eq' }
|
||||
'!=' { '_ne' }
|
||||
'<=' { '_le' }
|
||||
'>=' { '_ge' }
|
||||
else { '' }
|
||||
}
|
||||
return s[..s.len - 2] + suffix
|
||||
|
||||
Reference in New Issue
Block a user