[12066] Optimize some parts for ++C

This commit is contained in:
stfx 2012-07-21 17:14:55 +02:00 committed by Schmoozerd
parent ba86b02dd4
commit 3707b04330
48 changed files with 163 additions and 163 deletions

View file

@ -71,7 +71,7 @@ void BarGoLink::init(int row_count)
#else
printf("[");
#endif
for (int i = 0; i < indic_len; i++) printf(empty);
for (int i = 0; i < indic_len; ++i) printf(empty);
#ifdef _WIN32
printf("\x3D 0%%\r\x3D");
#else
@ -97,8 +97,8 @@ void BarGoLink::step()
#else
printf("\r[");
#endif
for (i = 0; i < n; i++) printf(full);
for (; i < indic_len; i++) printf(empty);
for (i = 0; i < n; ++i) printf(full);
for (; i < indic_len; ++i) printf(empty);
float percent = (((float)n / (float)indic_len) * 100);
#ifdef _WIN32
printf("\x3D %i%% \r\x3D", (int)percent);