Code Review
/
com
/
gs-lite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix HFTA operators and UDAFs broken by the last update
[com/gs-lite.git]
/
src
/
lib
/
gscphftaaux
/
flip_udaf.cc
diff --git
a/src/lib/gscphftaaux/flip_udaf.cc
b/src/lib/gscphftaaux/flip_udaf.cc
index
a44f3e5
..
0252fde
100644
(file)
--- a/
src/lib/gscphftaaux/flip_udaf.cc
+++ b/
src/lib/gscphftaaux/flip_udaf.cc
@@
-226,7
+226,7
@@
gs_uint32_t extr_quant_hfta0_fcn(vstring *v, gs_float_t phi)
//printf("nelts=%d t=%llx\n",vs->nelts, (unsigned long long int)(vs->t));
supertuple_t *t, *p;
gs_uint32_t nelts=0;
//printf("nelts=%d t=%llx\n",vs->nelts, (unsigned long long int)(vs->t));
supertuple_t *t, *p;
gs_uint32_t nelts=0;
- gs_
uint32_t rmin=0, rmax, rank, ropt=U
INT_MAX;
+ gs_
int32_t rmin=0, rmax, rank, ropt=
INT_MAX;
gs_uint32_t count=0;
for (t=vs->t; t != NULL; t=t->next) {
gs_uint32_t count=0;
for (t=vs->t; t != NULL; t=t->next) {
@@
-235,7
+235,7
@@
gs_uint32_t extr_quant_hfta0_fcn(vstring *v, gs_float_t phi)
nelts += t->gap;
count++;
}
nelts += t->gap;
count++;
}
- rank = (gs_
u
int32_t) (phi*(float)nelts);
+ rank = (gs_int32_t) (phi*(float)nelts);
for (t=vs->t; t != NULL; t=t->next) {
rmin += t->gap;
for (t=vs->t; t != NULL; t=t->next) {
rmin += t->gap;
@@
-389,14
+389,14
@@
gs_uint32_t extr_quant_hfta3_fcn(vstring *v, gs_float_t phi)
quant_udaf_hfta3_struct_t *vs = (quant_udaf_hfta3_struct_t *)(v->offset);
supertuple_t *t, *p;
gs_uint32_t nelts=0;
quant_udaf_hfta3_struct_t *vs = (quant_udaf_hfta3_struct_t *)(v->offset);
supertuple_t *t, *p;
gs_uint32_t nelts=0;
- gs_
uint32_t rmin=0, rmax, rank, ropt=U
INT_MAX;
+ gs_
int32_t rmin=0, rmax, rank, ropt=
INT_MAX;
gs_uint32_t count=0;
for (t=vs->t; t != NULL; t=t->next) {
nelts += t->gap;
count++;
}
gs_uint32_t count=0;
for (t=vs->t; t != NULL; t=t->next) {
nelts += t->gap;
count++;
}
- rank = (gs_
u
int32_t) (phi*(float)nelts);
+ rank = (gs_int32_t) (phi*(float)nelts);
for (t=vs->t; t != NULL; t=t->next) {
rmin += t->gap;
for (t=vs->t; t != NULL; t=t->next) {
rmin += t->gap;