[MLton-commit] r4558

Matthew Fluet MLton@mlton.org
Sun, 21 May 2006 07:32:16 -0700


Fixed warning on FreeBSD
----------------------------------------------------------------------

U   mlton/branches/on-20050822-x86_64-branch/runtime/gc/signals.c

----------------------------------------------------------------------

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/gc/signals.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/gc/signals.c	2006-05-21 14:31:54 UTC (rev 4557)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/gc/signals.c	2006-05-21 14:32:14 UTC (rev 4558)
@@ -18,7 +18,7 @@
   size_t ss_size = align (SIGSTKSZ, s->sysvals.pageSize);
   size_t psize = s->sysvals.pageSize;
   void *ss_sp = GC_mmapAnon_safe_protect (NULL, 2 * ss_size, psize, psize);
-  altstack.ss_sp = (unsigned char*)ss_sp + ss_size;
+  altstack.ss_sp = (typeof(altstack.ss_sp))((pointer)ss_sp + ss_size);
   altstack.ss_size = ss_size;
   altstack.ss_flags = 0;
   sigaltstack (&altstack, NULL);