Commit 1d97a454 authored by marina.kolpakova's avatar marina.kolpakova

fixed compilation for GCC 4.6

parent 0b2c1dc8
......@@ -375,7 +375,7 @@ namespace cv { namespace gpu { namespace device
{
__device__ __forceinline__ signed char operator ()(signed char x) const
{
return ::abs(x);
return ::abs((int)x);
}
__device__ __forceinline__ abs_func() {}
......@@ -385,7 +385,7 @@ namespace cv { namespace gpu { namespace device
{
__device__ __forceinline__ char operator ()(char x) const
{
return ::abs(x);
return ::abs((int)x);
}
__device__ __forceinline__ abs_func() {}
......@@ -405,7 +405,7 @@ namespace cv { namespace gpu { namespace device
{
__device__ __forceinline__ short operator ()(short x) const
{
return ::abs(x);
return ::abs((int)x);
}
__device__ __forceinline__ abs_func() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment