[MLton-commit] r4864
Matthew Fluet
fluet at mlton.org
Tue Nov 28 07:49:13 PST 2006
MacOS 10.4 warnings
----------------------------------------------------------------------
U mlton/trunk/runtime/platform/darwin.c
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/platform/darwin.c
===================================================================
--- mlton/trunk/runtime/platform/darwin.c 2006-11-27 23:08:46 UTC (rev 4863)
+++ mlton/trunk/runtime/platform/darwin.c 2006-11-28 15:49:10 UTC (rev 4864)
@@ -27,13 +27,13 @@
}
void *getTextStart () {
- unsigned long address;
+ void *address;
void *module;
- struct mach_header *mh;
+ const struct mach_header *mh;
- _dyld_lookup_and_bind ("_main", &address, &module);
+ _dyld_lookup_and_bind ("_main", &address, (NSModule*)&module);
mh = _dyld_get_image_header_containing_address (address);
- return mh;
+ return (void*)mh;
}
void showMem () {
More information about the MLton-commit
mailing list