Rewrite cast of (ushort*) to standard type uint16_t
s/(\s*ushort\s*\*\s*)/(uint16_t *)/g
This commit is contained in:
parent
b31446340c
commit
aeebffccc0
|
@ -87,7 +87,7 @@ static void find_min_max(polymodel *pm,int submodel_num,vms_vector &minv,vms_vec
|
||||||
ushort nverts;
|
ushort nverts;
|
||||||
ushort *data,type;
|
ushort *data,type;
|
||||||
|
|
||||||
data = (ushort *) &pm->model_data[pm->submodel_ptrs[submodel_num]];
|
data = (uint16_t *) &pm->model_data[pm->submodel_ptrs[submodel_num]];
|
||||||
|
|
||||||
type = *data++;
|
type = *data++;
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ static void init_points(polymodel *pm,const vms_vector *box_size,int submodel_nu
|
||||||
ushort *data,type;
|
ushort *data,type;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
data = (ushort *) &pm->model_data[pm->submodel_ptrs[submodel_num]];
|
data = (uint16_t *) &pm->model_data[pm->submodel_ptrs[submodel_num]];
|
||||||
|
|
||||||
type = *data++;
|
type = *data++;
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ static void update_points(polymodel *pm,int submodel_num,morph_data *md)
|
||||||
ushort *data,type;
|
ushort *data,type;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
data = (ushort *) &pm->model_data[pm->submodel_ptrs[submodel_num]];
|
data = (uint16_t *) &pm->model_data[pm->submodel_ptrs[submodel_num]];
|
||||||
|
|
||||||
type = *data++;
|
type = *data++;
|
||||||
|
|
||||||
|
|
|
@ -617,7 +617,7 @@ static void polyobj_find_min_max(polymodel *pm)
|
||||||
auto &mx = pm->submodel_maxs[m];
|
auto &mx = pm->submodel_maxs[m];
|
||||||
const auto &ofs = pm->submodel_offsets[m];
|
const auto &ofs = pm->submodel_offsets[m];
|
||||||
|
|
||||||
data = (ushort *)&pm->model_data[pm->submodel_ptrs[m]];
|
data = (uint16_t *)&pm->model_data[pm->submodel_ptrs[m]];
|
||||||
|
|
||||||
type = *data++;
|
type = *data++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue