1.0.9.40: fix 64 bit build
authorNikodemus Siivola <nikodemus@random-state.net>
Fri, 7 Sep 2007 09:51:37 +0000 (09:51 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Fri, 7 Sep 2007 09:51:37 +0000 (09:51 +0000)
* Need to cast (BACKEND_PAGE_SIZE-1) to an unsigned long before bit
  flipping, otherwise we're potentially cutting the high bits off the
  allocation address.

src/runtime/thread.c
version.lisp-expr

index a838c7d..650d515 100644 (file)
@@ -383,7 +383,7 @@ create_thread_struct(lispobj initial_function) {
      * padding. */
     aligned_spaces = (void *)((((unsigned long)(char *)spaces)
                                + BACKEND_PAGE_SIZE - 1)
-                              & ~(BACKEND_PAGE_SIZE - 1));
+                              & ~(unsigned long)(BACKEND_PAGE_SIZE - 1));
     per_thread=(union per_thread_data *)
         (aligned_spaces+
          THREAD_CONTROL_STACK_SIZE+
index 1e4090c..be5e80c 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.9.39"
+"1.0.9.40"