From 2bd5459ff16a801373f73c134356a83b6a74c1d5 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Fri, 1 Sep 2006 00:15:22 +0000 Subject: [PATCH] small typo --- Robust/src/Runtime/checkpoint.c | 2 +- Robust/src/Runtime/runtime.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Robust/src/Runtime/checkpoint.c b/Robust/src/Runtime/checkpoint.c index 353c5b66..351f9ad7 100644 --- a/Robust/src/Runtime/checkpoint.c +++ b/Robust/src/Runtime/checkpoint.c @@ -60,7 +60,7 @@ void ** makecheckpoint(int numparams, void ** srcpointer, struct SimpleHash * fo SimpleHashadd(forward, (int) objptr, (int) copy); SimpleHashadd(reverse, (int) copy, (int) objptr); SimpleHashadd(todo, (int) objptr, (int) objptr); - *((void **) ((int)cpy)+offset)=copy; + *((void **) (((int)cpy)+offset))=copy; } } } diff --git a/Robust/src/Runtime/runtime.c b/Robust/src/Runtime/runtime.c index 61016094..e474bd17 100644 --- a/Robust/src/Runtime/runtime.c +++ b/Robust/src/Runtime/runtime.c @@ -24,6 +24,8 @@ struct parameterwrapper * objectqueues[NUMCLASSES]; struct genhashtable * failedtasks; int main(int argc, char **argv) { + GC_init(); + { int i; /* Allocate startup object */ struct ___StartupObject___ *startupobject=(struct ___StartupObject___*) allocate_new(STARTUPTYPE); @@ -47,6 +49,7 @@ int main(int argc, char **argv) { ((void **)(((char *)& stringarray->___length___)+sizeof(int)))[i]=newstring; } executetasks(); + } } int hashCodetpd(struct taskparamdescriptor *ftd) { -- 2.34.1