mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-07 23:13:01 -06:00
Eliminate redundant explicit type conversion.
The pointers in question are already type 'int *'. There is no need to explicitly convert them to that type too.
This commit is contained in:
parent
b8e840e81e
commit
267ec64ae8
@ -88,8 +88,8 @@ tarjan (int nv, const int *ia, const int *ja, int *vert, int *comp,
|
||||
int pos = 0;
|
||||
|
||||
int *time = work;
|
||||
int *link = (int *) time + nv;
|
||||
int *status = (int *) link + nv; /* dual usage... */
|
||||
int *link = time + nv;
|
||||
int *status = link + nv; /* dual usage... */
|
||||
|
||||
clear_vector(3 * ((size_t) nv), work);
|
||||
clear_vector(1 * ((size_t) nv), vert);
|
||||
|
Loading…
Reference in New Issue
Block a user