summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm')
-rw-r--r--2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c
index 56856e43..b01c8047 100644
--- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c
+++ b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c
@@ -44,7 +44,8 @@ uint8 u8lcma(uint8* in,int size)
else
i+=max;
}
- for(int j=2;j<size;j++)
+ int j;
+ for(j=2;j<size;j++)
{
x1=lcm_temp;
x2=*(in+j);