summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MLKCompiledClosure.m2
-rw-r--r--MLKContinuation.m1
-rw-r--r--MLKLLVMCompiler.mm6
3 files changed, 5 insertions, 4 deletions
diff --git a/MLKCompiledClosure.m b/MLKCompiledClosure.m
index 4a59f7d..bb1e9e6 100644
--- a/MLKCompiledClosure.m
+++ b/MLKCompiledClosure.m
@@ -113,7 +113,7 @@
if (return_values)
{
MLKCons *values = [return_values cdr];
- return (values ? [values array] : [NSArray array]);
+ return (values ? (id)[values array] : (id)[NSArray array]);
}
else
{
diff --git a/MLKContinuation.m b/MLKContinuation.m
index e253370..2c68c6e 100644
--- a/MLKContinuation.m
+++ b/MLKContinuation.m
@@ -27,6 +27,7 @@
self = [super init];
_continuation = make_continuation (MLKRootContinuation);
setjump (_continuation->jmpbuf);
+ return self;
}
+ (id)continuation
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm
index 9f273cf..bb235bf 100644
--- a/MLKLLVMCompiler.mm
+++ b/MLKLLVMCompiler.mm
@@ -160,7 +160,7 @@ static Constant
"",
module);
id lambdaForm;
- id (*fn)();
+ //id (*fn)();
MLKForm *form = [MLKForm formWithObject:object
inContext:context
forCompiler:self];
@@ -447,7 +447,7 @@ static Constant
NSEnumerator *e = [_bodyForms objectEnumerator];
MLKForm *form;
Value *value = ConstantPointerNull::get (VoidPointerTy);
- int i;
+ unsigned int i;
i = 0;
while ((form = [e nextObject]))
@@ -909,7 +909,7 @@ build_simple_function_definition (MLKBodyForm *processed_form,
}
}
- int i = 0;
+ unsigned int i = 0;
e = [_bodyForms objectEnumerator];
while ((form = [e nextObject]))
{