]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix
authorDale Weiler <killfieldengine@gmail.com>
Mon, 25 Nov 2013 16:29:36 +0000 (11:29 -0500)
committerDale Weiler <killfieldengine@gmail.com>
Mon, 25 Nov 2013 16:29:36 +0000 (11:29 -0500)
intrin.c

index 57609b6fda8dfa625885cbffb8a68c4cf89dcc19..c025a0bd1b21aa58e07cc95444a124c611b9e308 100644 (file)
--- a/intrin.c
+++ b/intrin.c
@@ -1319,7 +1319,7 @@ static ast_expression *intrin_inf(intrin_t *intrin) {
     ast_value    *value  = NULL;
     ast_value    *x      = ast_value_new(intrin_ctx(intrin), "x", TYPE_FLOAT);
     ast_value    *y      = ast_value_new(intrin_ctx(intrin), "y", TYPE_FLOAT);
-    ast_function *func   = intrin_value(intrin, &value, "nan", TYPE_FLOAT);
+    ast_function *func   = intrin_value(intrin, &value, "inf", TYPE_FLOAT);
     ast_block    *block  = ast_block_new(intrin_ctx(intrin));
     size_t        i;