aboutsummaryrefslogtreecommitdiffstats
path: root/code/botlib/l_precomp.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-02-20 19:41:52 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-02-20 19:41:52 +0000
commitf239ea4ac4ca4718b29586485235bf31a4edbbe5 (patch)
treea5733c0ba30ff711c5ff28ecf10c18ad66fcf9ea /code/botlib/l_precomp.c
parentc3c6c4a698ef4b1f8ac1beb430b95a97d6f4365b (diff)
downloadioquake3-aero-f239ea4ac4ca4718b29586485235bf31a4edbbe5.tar.gz
ioquake3-aero-f239ea4ac4ca4718b29586485235bf31a4edbbe5.zip
* (bug 3427) Single Player causes SIGBUS on SGI IRIX (Patrick Baggett)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1268 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/botlib/l_precomp.c')
-rw-r--r--code/botlib/l_precomp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/code/botlib/l_precomp.c b/code/botlib/l_precomp.c
index 866a601..a84ca2c 100644
--- a/code/botlib/l_precomp.c
+++ b/code/botlib/l_precomp.c
@@ -1617,7 +1617,7 @@ typedef struct operator_s
typedef struct value_s
{
signed long int intvalue;
- double floatvalue;
+ float floatvalue;
int parentheses;
struct value_s *prev, *next;
} value_t;
@@ -1685,7 +1685,7 @@ int PC_OperatorPriority(int op)
#define FreeOperator(op)
int PC_EvaluateTokens(source_t *source, token_t *tokens, signed long int *intvalue,
- double *floatvalue, int integer)
+ float *floatvalue, int integer)
{
operator_t *o, *firstoperator, *lastoperator;
value_t *v, *firstvalue, *lastvalue, *v1, *v2;
@@ -1696,7 +1696,7 @@ int PC_EvaluateTokens(source_t *source, token_t *tokens, signed long int *intval
int lastwasvalue = 0;
int negativevalue = 0;
int questmarkintvalue = 0;
- double questmarkfloatvalue = 0;
+ float questmarkfloatvalue = 0;
int gotquestmarkvalue = qfalse;
int lastoperatortype = 0;
//
@@ -2139,7 +2139,7 @@ int PC_EvaluateTokens(source_t *source, token_t *tokens, signed long int *intval
// Changes Globals: -
//============================================================================
int PC_Evaluate(source_t *source, signed long int *intvalue,
- double *floatvalue, int integer)
+ float *floatvalue, int integer)
{
token_t token, *firsttoken, *lasttoken;
token_t *t, *nexttoken;
@@ -2238,7 +2238,7 @@ int PC_Evaluate(source_t *source, signed long int *intvalue,
// Changes Globals: -
//============================================================================
int PC_DollarEvaluate(source_t *source, signed long int *intvalue,
- double *floatvalue, int integer)
+ float *floatvalue, int integer)
{
int indent, defined = qfalse;
token_t token, *firsttoken, *lasttoken;
@@ -2468,7 +2468,7 @@ int PC_Directive_eval(source_t *source)
//============================================================================
int PC_Directive_evalfloat(source_t *source)
{
- double value;
+ float value;
token_t token;
if (!PC_Evaluate(source, NULL, &value, qfalse)) return qfalse;
@@ -2577,7 +2577,7 @@ int PC_DollarDirective_evalint(source_t *source)
//============================================================================
int PC_DollarDirective_evalfloat(source_t *source)
{
- double value;
+ float value;
token_t token;
if (!PC_DollarEvaluate(source, NULL, &value, qfalse)) return qfalse;