freebsd-ports/lang/urweb/files/patch-src__c__urweb.c
Koop Mast 192fe3d122 Fix the build with clang 3.5 by using the suggested function.
PR:		196124
Submitted by:	dim@
Approved by:	maintainer
2015-02-14 13:58:06 +00:00

11 lines
345 B
C

--- src/c/urweb.c.orig 2014-07-04 15:32:47.000000000 +0200
+++ src/c/urweb.c 2014-12-19 01:22:02.000000000 +0100
@@ -4204,7 +4204,7 @@ uw_Basis_int uw_Basis_rand(uw_context ct
pthread_mutex_unlock(&rand_mutex);
if (r)
- return abs(ret);
+ return llabs(ret);
else
uw_error(ctx, FATAL, "Random number generation failed");
}