Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 8:815f084feb19, committed 2017-12-21
- Comitter:
- O_Shovah
- Date:
- Thu Dec 21 13:01:31 2017 +0000
- Parent:
- 7:2b1e34741392
- Commit message:
- Changed array cell designator.
Changed in this revision
find_number.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2b1e34741392 -r 815f084feb19 find_number.cpp --- a/find_number.cpp Wed Dec 20 09:52:02 2017 +0000 +++ b/find_number.cpp Thu Dec 21 13:01:31 2017 +0000 @@ -18,7 +18,7 @@ int32_t find_number::find_closest(int32_t target_value) { - int32_t difference = abs( target_value - *selectable_values_array); + int32_t difference = abs( target_value - selectable_values_array[0]); int32_t closest_integer = selectable_values_array[0]; for (int32_t cell = 0; cell < searched_array_size; cell++) {