aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextureRender.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextureRender.cc')
-rw-r--r--src/FbTk/TextureRender.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc
index c2f8e07..7b808af 100644
--- a/src/FbTk/TextureRender.cc
+++ b/src/FbTk/TextureRender.cc
@@ -76,9 +76,10 @@ unsigned long bsqrt(unsigned int x) {
76 sqrt_table[0] = 0; 76 sqrt_table[0] = 0;
77 sqrt_table[1] = 1; 77 sqrt_table[1] = 1;
78 78
79 unsigned long r = x >> 1; 79 unsigned long r;
80 unsigned long q; 80 unsigned long q;
81 for (x = 2; x < SQRT_TABLE_ENTRIES; x++) { 81 for (x = 2; x < SQRT_TABLE_ENTRIES; x++) {
82 r = x >> 1;
82 while (1) { 83 while (1) {
83 q = x / r; 84 q = x / r;
84 if (q >= r) { 85 if (q >= r) {