summaryrefslogtreecommitdiff
path: root/pcr/zoneminder/fabs.patch
blob: b0a62e3dbd9261d09fa3efd4da00820fa6c83c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/ZoneMinder-1.30.4/src/zm_image.cpp	2017-06-17 04:20:45.808503543 -0300
+++ src/ZoneMinder-1.30.4/src/zm_image.cpp.2	2017-06-17 04:20:40.221794330 -0300
@@ -1659,7 +1659,7 @@
         uint8_t *psrc = images[j]->buffer+c;
 
 #ifndef SOLARIS
-        if ( (unsigned)abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) )
+        if ( (unsigned)fabs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) )
 #else
         if ( (unsigned)std::abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) )
 #endif