103 |
if (*base > 65535 || *inc > 65535) { |
if (*base > 65535 || *inc > 65535) { |
104 |
int *biggest; |
int *biggest; |
105 |
int *other; |
int *other; |
106 |
|
float div; |
107 |
|
|
108 |
if (*base > *inc) { |
if (*base > *inc) { |
109 |
biggest = base; |
biggest = base; |
113 |
other = base; |
other = base; |
114 |
} |
} |
115 |
|
|
116 |
float div = ((float)*biggest)/((float)65535); |
div = ((float)*biggest)/((float)65535); |
117 |
*biggest = (int)(((float)*biggest)/div); |
*biggest = (int)(((float)*biggest)/div); |
118 |
*other = (int)(((float)*other)/div); |
*other = (int)(((float)*other)/div); |
119 |
} |
} |