mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
switch should be nimOldShiftRight with the nim prefix
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
- A bug allowed `macro foo(): int = 123` to compile even though a
|
||||
macros has to return a `NimNode`. This has been fixed.
|
||||
|
||||
- `shr` is now sign preserving. Use `-d:oldShiftRight` to enable old
|
||||
- `shr` is now sign preserving. Use `-d:nimOldShiftRight` to enable old
|
||||
behavior globally.
|
||||
|
||||
- With the exception of `uint` and `uint64`, conversion to unsigned types
|
||||
|
||||
@@ -278,5 +278,5 @@ tcc.options.always = "-w"
|
||||
--multimethods:on
|
||||
--oldAst:on
|
||||
--define:nimOldCaseObjects
|
||||
--define:oldShiftRight
|
||||
--define:nimOldShiftRight
|
||||
@end
|
||||
|
||||
@@ -1271,7 +1271,7 @@ else:
|
||||
|
||||
when defined(nimNewShiftOps):
|
||||
|
||||
when defined(oldShiftRight) or not defined(nimAshr):
|
||||
when defined(nimOldShiftRight) or not defined(nimAshr):
|
||||
const shrDepMessage = "`shr` will become sign preserving."
|
||||
proc `shr`*(x: int, y: SomeInteger): int {.magic: "ShrI", noSideEffect, deprecated: shrDepMessage.}
|
||||
proc `shr`*(x: int8, y: SomeInteger): int8 {.magic: "ShrI", noSideEffect, deprecated: shrDepMessage.}
|
||||
|
||||
Reference in New Issue
Block a user