mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Removed unnecessary increment and decrement from ZFPDecode
These extra operations caused the pointer to go out of bound and then back in, but some compilers (gcc 9) would detect and warn that the pointer had gone out of bounds.
This commit is contained in:
parent
f9860b847e
commit
870bd1d170
@ -66,7 +66,6 @@ VTKM_EXEC static void inv_lift(Int* p)
|
||||
z = *p;
|
||||
p += s;
|
||||
w = *p;
|
||||
p += s;
|
||||
|
||||
/*
|
||||
** non-orthogonal transform
|
||||
@ -90,7 +89,6 @@ VTKM_EXEC static void inv_lift(Int* p)
|
||||
x <<= 1;
|
||||
x -= w;
|
||||
|
||||
p -= s;
|
||||
*p = w;
|
||||
p -= s;
|
||||
*p = z;
|
||||
|
Loading…
Reference in New Issue
Block a user