Skip to content

Commit 7d10ee9

Browse files
ringaboutcapocasa
authored andcommitted
follow up nim-lang#19408; bump devel version and deprecated unsafeAddr (nim-lang#20432)
bump devel version and deprecated unsafeAddr
1 parent 6b76c2b commit 7d10ee9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/system.nim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ proc `addr`*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
211211
## ```
212212
discard
213213

214-
proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
214+
proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect,
215+
deprecated: "'unsafeAddr' is a deprecated alias for 'addr'".} =
215216
## Builtin `addr` operator for taking the address of a memory
216217
## location.
217218
##
@@ -2147,7 +2148,7 @@ const
21472148
## is the minor number of Nim's version.
21482149
## Odd for devel, even for releases.
21492150

2150-
NimPatch* {.intdefine.}: int = 1
2151+
NimPatch* {.intdefine.}: int = 3
21512152
## is the patch number of Nim's version.
21522153
## Odd for devel, even for releases.
21532154

0 commit comments

Comments
 (0)