Skip to content
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

extend pragma #914

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

afwn90cj93201nixr2e1re
Copy link
Contributor

No description provided.

@afwn90cj93201nixr2e1re afwn90cj93201nixr2e1re marked this pull request as draft November 23, 2020 07:49
@afwn90cj93201nixr2e1re
Copy link
Contributor Author

afwn90cj93201nixr2e1re commented Nov 23, 2020

extending pragma with option and warning.
originally intended by yless

New pragmas: option, warning.
New simplified zero division detector.
Fixed const scopes.
Fixed 'assigned to itself' warning on multidimensional array's cell's (invertion operators).
@@ -1209,6 +1236,8 @@ static int hier2(value *lval)
rvalue(lval);
invert(); /* bitwise NOT */
lval->constval=~lval->constval;
if (lval->ident==iVARIABLE || lval->ident==iARRAYCELL)
lval->ident=iEXPRESSION;
Copy link
Member

Choose a reason for hiding this comment

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

These are long-standing bugs - but are they related to this change? If not, it's best to separate them for purposes of bisection.

Copy link
Member

Choose a reason for hiding this comment

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

Actually, it looks like there are many individual bug changes in this patch...

Copy link
Contributor Author

@afwn90cj93201nixr2e1re afwn90cj93201nixr2e1re Dec 6, 2020

Choose a reason for hiding this comment

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

Should i just separate them? Or it's possible to change pr title instead? (Coz i just took arkshine style, he used 1 pr to update/fix few things in compiler, github.com/alliedmodders/amxmodx/ pull/137).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dvander need answers

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.

3 participants