From 2fcd52b60a682fd0664e4dbb80d6e6e03bc140f6 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 29 Nov 2005 19:20:16 +0000
Subject: [PATCH] xp_timer() returns a long double, not a regular old double. 
 In MSVC, these are apparently the same thing, not so for nost *nix systems. 
 Unsure of BCC.

At the very least, MSVC doesn't support a long double type with *printf()
whereas *nix does.  This does not *seem* to be causing a problem, but it may.
---
 src/sbbs3/jsexec.c  | 4 ++--
 src/sbbs3/websrvr.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/jsexec.c b/src/sbbs3/jsexec.c
index 8deb6b8ecb..274d76f0ce 100644
--- a/src/sbbs3/jsexec.c
+++ b/src/sbbs3/jsexec.c
@@ -618,8 +618,8 @@ long js_exec(const char *fname, char** args)
 	jsval		val;
 	jsval		rval=JSVAL_VOID;
 	int32		result=0;
-	double		start;
-	double		diff;
+	long double	start;
+	long double	diff;
 	
 	if(fname!=NULL) {
 		if(strcspn(fname,"/\\")==strlen(fname)) {
diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c
index 20565d3fdc..773d4a14a6 100644
--- a/src/sbbs3/websrvr.c
+++ b/src/sbbs3/websrvr.c
@@ -3375,7 +3375,7 @@ static BOOL exec_ssjs(http_session_t* session, char* script)  {
 	jsval		rval;
 	char		path[MAX_PATH+1];
 	BOOL		retval=TRUE;
-	double		start;
+	long double		start;
 
 	/* External JavaScript handler? */
 	if(script == session->req.physical_path && session->req.xjs_handler[0])
-- 
GitLab