Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
eb78c4c6
Commit
eb78c4c6
authored
May 27, 2008
by
Simon Marlow
Browse files
clarify that unsafeCoerce# :: Float# -> Int# is not safe (see #2209)
parent
b27381f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/prelude/primops.txt.pp
View file @
eb78c4c6
...
...
@@ -1801,6 +1801,7 @@ pseudoop "unsafeCoerce#"
*
Casting
{
\
tt
Any
}
back
to
the
real
type
*
Casting
an
unboxed
type
to
another
unboxed
type
of
the
same
size
(
but
not
coercions
between
floating
-
point
and
integral
types
)
*
Casting
between
two
types
that
have
the
same
runtime
representation
.
One
case
is
when
the
two
types
differ
only
in
"phantom"
type
parameters
,
for
example
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment