Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
53f56234
Commit
53f56234
authored
Mar 13, 2000
by
sewardj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2000-03-13 10:39:11 by sewardj]
Clean up a couple of compilation warnings.
parent
9cf6d0f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ghc/rts/Evaluator.c
ghc/rts/Evaluator.c
+7
-7
No files found.
ghc/rts/Evaluator.c
View file @
53f56234
...
...
@@ -5,8 +5,8 @@
* Copyright (c) 1994-1998.
*
* $RCSfile: Evaluator.c,v $
* $Revision: 1.3
7
$
* $Date: 2000/03/13 10:3
0:25
$
* $Revision: 1.3
8
$
* $Date: 2000/03/13 10:3
9:11
$
* ---------------------------------------------------------------------------*/
#include "Rts.h"
...
...
@@ -2122,14 +2122,14 @@ static StgClosure* makeErrorCall ( const char* msg )
StgPtr
CreateByteArrayToHoldInteger
(
int
nbytes
)
{
Stg
Int
words
=
(
nbytes
+
sizeof
(
W_
)
-
1
)
/
sizeof
(
W_
);
Stg
Word
words
=
(
nbytes
+
sizeof
(
W_
)
-
1
)
/
sizeof
(
W_
);
StgWord
size
=
sizeofW
(
StgArrWords
)
+
words
;
StgArrWords
*
arr
=
(
StgArrWords
*
)
allocate
(
size
);
SET_HDR
(
arr
,
&
ARR_WORDS_info
,
CCCS
);
arr
->
words
=
words
;
ASSERT
(
nbytes
<=
arr
->
words
*
sizeof
(
W_
));
ASSERT
(
(
W_
)
nbytes
<=
arr
->
words
*
sizeof
(
W_
));
#ifdef DEBUG
{
nat
i
;
{
StgWord
i
;
for
(
i
=
0
;
i
<
words
;
++
i
)
{
arr
->
payload
[
i
]
=
0xdeadbeef
;
}}
...
...
@@ -2216,7 +2216,7 @@ void SloppifyIntegerEnd ( StgPtr arr0 )
}
void
myStackCheck
(
Capability
*
cap
)
static
void
myStackCheck
(
Capability
*
cap
)
{
/* fprintf(stderr, "myStackCheck\n"); */
if
(
!
(
gSpLim
<=
gSp
&&
gSp
<=
stgCast
(
StgPtr
,
gSu
)))
{
...
...
@@ -2968,7 +2968,7 @@ static void* enterBCO_primop2 ( int primop2code,
*/
PushCPtr
((
StgClosure
*
)(
*
bco
));
*
return2
=
ThreadBlocked
;
return
(
void
*
)(
1
+
(
NULL
));
return
(
void
*
)(
1
+
(
char
*
)(
NULL
));
}
else
{
PushCPtr
(
mvar
->
value
);
...
...
Write
Preview
Markdown
is supported
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