commit
4cd795b3ee
3 changed files with 18 additions and 8 deletions
|
|
@ -122,3 +122,7 @@ proc hash*[T: tuple](x: T): THash =
|
|||
result = result !& hash(f)
|
||||
result = !$result
|
||||
|
||||
proc hash*(x: float): THash {.inline.} =
|
||||
var y = x + 1.0
|
||||
result = cast[ptr THash](addr(y))[]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue