Skip to content

Unify the condition form within the asserts #1066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2016

Conversation

robertsipka
Copy link
Contributor

This modificiation affects those conditions which check that
a value can be representable with a smaller type.

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com

@akosthekiss
Copy link
Member

LGTM (please fix commit message: "can be represented")

@robertsipka
Copy link
Contributor Author

Thanks, fixed.

JERRY_ASSERT ( name[0] <= UINT32_MAX); \
JERRY_ASSERT ( name[1] <= UINT32_MAX); \
JERRY_ASSERT ( name[2] <= UINT32_MAX); \
JERRY_ASSERT ( name[3] <= UINT32_MAX); \
Copy link
Contributor

Choose a reason for hiding this comment

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

unnecessary space in front of name.

JERRY_ASSERT (name[0] <= UINT32_MAX);
...

Copy link
Member

Choose a reason for hiding this comment

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

Why do you added a space before name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ohh, thanks, it was remiss of me.

@LaszloLango
Copy link
Contributor

LGTM

@LaszloLango LaszloLango added enhancement An improvement style Related to coding style labels May 18, 2016
@zherczeg
Copy link
Member

LGTM

This modificiation affects those conditions which check that
a value can be represented with a smaller type.

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
@robertsipka
Copy link
Contributor Author

robertsipka commented May 20, 2016

I rebased it with the master.

@akosthekiss akosthekiss merged commit 1c028d9 into jerryscript-project:master May 20, 2016
@robertsipka robertsipka deleted the type_conversion branch November 24, 2016 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement style Related to coding style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants