Commit d130dc2694e894939b2c6587af75f2d1bf0fae9b
1 parent
a2608ea0
avoid warning with possible hidden value by another with same name
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
types/version.anubis
| @@ -62,11 +62,11 @@ define Maybe(Version) | @@ -62,11 +62,11 @@ define Maybe(Version) | ||
| 62 | if v > 255 then //the value is greater than Word8 capacity | 62 | if v > 255 then //the value is greater than Word8 capacity |
| 63 | failure | 63 | failure |
| 64 | else | 64 | else |
| 65 | - with value = value | ((v&0xFF)<< (current * 8)), | 65 | + with final_value = value | ((v&0xFF)<< (current * 8)), |
| 66 | if current = 0 then | 66 | if current = 0 then |
| 67 | - success(version(value)) | 67 | + success(version(final_value)) |
| 68 | else | 68 | else |
| 69 | - convert_digits_to_Version(t, current -1, value) | 69 | + convert_digits_to_Version(t, current -1, final_value) |
| 70 | } | 70 | } |
| 71 | }. | 71 | }. |
| 72 | 72 |