Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d3a443b3
Commit
d3a443b3
authored
Feb 18, 1999
by
simonm
Browse files
[project @ 1999-02-18 17:55:40 by simonm]
Eliminate an unnecessary pattern match on J#.
parent
89300e49
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/utils/StringBuffer.lhs
View file @
d3a443b3
...
...
@@ -114,7 +114,7 @@ hGetStringBuffer fname =
return (StringBuffer a# read# 0# 0#)
#else
openFile fname ReadMode >>= \ hndl ->
hFileSize hndl >>= \ len
@(J# _ _ d#)
->
hFileSize hndl >>= \ len ->
let len_i = fromInteger len in
-- Allocate an array for system call to store its bytes into.
-- ToDo: make it robust
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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