Fix another error found in build testing.

This commit is contained in:
Gregory Nutt 2018-07-19 15:19:17 -06:00
parent e9cd6089c9
commit 12d216fa5e
3 changed files with 5 additions and 6 deletions

View File

@ -2169,7 +2169,7 @@ Configuration Sub-directories
CONFIG_HOST_WINDOWS=y : Builds under windows
CONFIG_WINDOWS_CYGWIN=y : Using Cygwin and
CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y : The native Windows CodeSourcery toolchain
CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW=y : Generic ARM EABI toolchain for Windows
2. By default, this project assumes that you are *NOT* using the DFU
bootloader.

View File

@ -5,7 +5,6 @@ CONFIG_ARCH_BOARD_STM32F4_DISCOVERY=y
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
CONFIG_BINFMT_CONSTRUCTORS=y
CONFIG_BINFMT_EXEPATH=y
CONFIG_BOARDCTL_APP_SYMTAB=y
@ -14,8 +13,8 @@ CONFIG_DEV_LOWCONSOLE=y
CONFIG_ELF=y
CONFIG_EXAMPLES_POSIXSPAWN=y
CONFIG_EXECFUNCS_HAVE_SYMTAB=y
CONFIG_EXECFUNCS_NSYMBOLS_VAR="g_spawn_nsymbols"
CONFIG_EXECFUNCS_SYMTAB_ARRAY="g_spawn_symtab"
CONFIG_EXECFUNCS_NSYMBOLS_VAR="g_spawn_nexports"
CONFIG_EXECFUNCS_SYMTAB_ARRAY="g_spawn_exports"
CONFIG_FS_ROMFS=y
CONFIG_HAVE_CXX=y
CONFIG_HOST_WINDOWS=y

View File

@ -281,8 +281,8 @@ unsigned long nrand(unsigned long limit)
result = (unsigned long)(((double_t)limit) * ratio);
/* Loop because there is a (unlikely) possibility that round could but
* the result at the limit value.
/* Loop because there is an (unlikely) possibility that rounding
* could increase the result at the limit value about the limit.
*/
}
while (result >= limit);