Skip to content

Commit 52e5189

Browse files
committed
runtime: fix maphash implementation of the enums
1 parent 3f2d1fd commit 52e5189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/runtime/maphash.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fn maphash[K](&k: *K, seed: uintptr): uintptr {
118118
}
119119
| comptime::Enum:
120120
comptime::TypeAlias(valueTyp, t.Value())
121-
ret unsafe { maphash(&(*(*valueTyp)(*k)), seed) }
121+
ret unsafe { maphash(&(*(*valueTyp)(k)), seed) }
122122
| comptime::F32:
123123
ret f32hash(f32(*k), seed)
124124
| comptime::F64:

0 commit comments

Comments
 (0)