]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/cpu-x86.hpp
Update Win64 support
[factor.git] / vm / cpu-x86.hpp
index c96291b0d72da9be33552f2386bb4dfedd21062c..97e5a203059a221ac973ebdc3c6327e80da3b7a9 100644 (file)
@@ -42,7 +42,7 @@ inline static void *get_call_target(cell return_address)
 inline static void set_call_target(cell return_address, void *target)
 {
        check_call_site(return_address);
-       *(int *)(return_address - 4) = ((cell)target - return_address);
+       *(int *)(return_address - 4) = (u32)((cell)target - return_address);
 }
 
 inline static bool tail_call_site_p(cell return_address)