Skip to content
Snippets Groups Projects
Commit b3337245 authored by Samuel Kemmler's avatar Samuel Kemmler
Browse files

Use uint_t instead of int to access f of gpu field

parent 17a4582c
Branches
No related merge requests found
......@@ -78,7 +78,7 @@ namespace gpu
__device__ __forceinline__ bool isValidPosition() { return true; }
__device__ T & get() { return * (T*)(ptr_); }
__device__ T & get( int f) { return * (T*)(ptr_ + f * fOffset_); }
__device__ T & get( uint_t f) { return * (T*)(ptr_ + f * fOffset_); }
__device__ T & getNeighbor( int cx, int cy, int cz ) const
......@@ -88,7 +88,7 @@ namespace gpu
cz * zOffset_ );
}
__device__ T & getNeighbor( int cx, int cy, int cz, int cf )
__device__ T & getNeighbor( int cx, int cy, int cz, uint_t cf )
{
return * (T*)( ptr_ + cx * xOffset_ +
cy * yOffset_ +
......
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