shithub: qk1

Download patch

ref: d7e016b552696b8f5581f5093f82a598bc0033d6
parent: 979562faeac7f9e557510f24f3e5df9acc830a6d
author: qwx <qwx@sciops.net>
date: Wed Jul 21 13:50:03 EDT 2021

qwsv: setfcr for ignored fp exceptions

--- a/qw/qwsv.c
+++ b/qw/qwsv.c
@@ -53,6 +53,8 @@
 	netadr_t *a;
 
 	svonly = 1;
+	/* ignore fp exceptions, assumed by code */
+	setfcr(getfcr() & ~(FPOVFL|FPUNFL|FPINVAL|FPZDIV));
 	COM_InitArgv (argc, argv);
 	initparm(&q);
 	if((echan = chancreate(sizeof(int), 1)) == nil