$OpenBSD: patch-jsint_c,v 1.5 2003/11/17 22:59:32 fgsch Exp $
--- jsint.c.orig	2003-11-10 15:03:29.000000000 -0300
+++ jsint.c	2003-11-17 19:13:56.000000000 -0300
@@ -2810,7 +2810,7 @@ static void __js_upcall_goto_history_ok_
 
 	if (a<jsid->n&&(fd->js)&&jsid->js_id==fd->js->ctx->js_id){js_downcall_vezmi_null(fd->js->ctx);return;}   /* call downcall */
 
-	go_backwards(fd->ses->term,(void*)(jsid->n),fd->ses);
+	go_backwards(fd->ses->term,(void*)(intptr_t)(jsid->n),fd->ses);
 }
 
 
@@ -2918,7 +2918,7 @@ void js_upcall_goto_history(void * data)
 	{
 		js_mem_free(s);
 		mem_free(url);
-		go_backwards(term,(void*)(history_num),fd->ses);
+		go_backwards(term,(void*)(intptr_t)(history_num),fd->ses);
 	}
 	return;
 goto_history_failed:
