Skip to content

Conversation

@martijnthe
Copy link
Contributor

rand () is being used in ecma-builtin-math.c, but the stdlib.h header is not being included.

…-math.c

JerryScript-DCO-1.0-Signed-off-by: Martijn The martijn.the@intel.com
@martijnthe martijnthe force-pushed the add-missing-stdlib-include branch from b47acb0 to 27906f9 Compare December 8, 2017 12:22
*/

#include <math.h>
#include <stdlib.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm right, stdlib.h comes from this header, which will be included later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you're right, thanks!
The problem is in our stdlib.h header, it's missing rand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants