diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-04-16 09:34:13 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-04-16 09:34:13 -0600 |
commit | 52ca45e07e5337d39ad26adfa9ab1d818e842555 (patch) | |
tree | b966626ae0bc7d37399b6375ac5d706fdd9c71f8 | |
parent | 889818c6d7e8fba4c37bc08635177c5eba5673b4 (diff) | |
download | px4-nuttx-52ca45e07e5337d39ad26adfa9ab1d818e842555.tar.gz px4-nuttx-52ca45e07e5337d39ad26adfa9ab1d818e842555.tar.bz2 px4-nuttx-52ca45e07e5337d39ad26adfa9ab1d818e842555.zip |
Reference to MAX_RAND should be RAND_MAX
-rw-r--r-- | NxWidgets/UnitTests/CListBox/clistbox_main.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NxWidgets/UnitTests/CListBox/clistbox_main.cxx b/NxWidgets/UnitTests/CListBox/clistbox_main.cxx index 09938e0a2..737d3bbaf 100644 --- a/NxWidgets/UnitTests/CListBox/clistbox_main.cxx +++ b/NxWidgets/UnitTests/CListBox/clistbox_main.cxx @@ -274,7 +274,7 @@ int clistbox_main(int argc, char *argv[]) printf("clistbox_main: Selecting five options\n"); for (int i = 0; i < 5; i++) { - selected[i] = ((nOptions - 1) * rand()) / MAX_RAND; + selected[i] = ((nOptions - 1) * rand()) / RAND_MAX; printf("clistbox_main: Selecting option %d\n", selected[i]); listbox->removeOption(selected[i]); test->showListBox(listbox); |