Skip to content

[c] Fix operator precedence: it should be unary minus instead equal #5287

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
Mar 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c.md
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ typedef void (*my_fnp_type)(char *);
// Operators | Associativity //
//---------------------------------------------------//
// () [] -> . | left to right //
// ! ~ ++ -- + = *(type) sizeof | right to left //
// ! ~ ++ -- + - *(type) sizeof | right to left //
// * / % | left to right //
// + - | left to right //
// << >> | left to right //
Expand Down
2 changes: 1 addition & 1 deletion de/c.md
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ typedef void (*my_fnp_type)(char *);
// Operatoren | Assoziativität //
//-------------------------------------------------------//
// () [] -> . | linksassoziativ //
// ! ~ ++ -- + = *(type)sizeof | rechtsassoziativ //
// ! ~ ++ -- + - *(type)sizeof | rechtsassoziativ //
// * / % | linksassoziativ //
// + - | linksassoziativ //
// << >> | linksassoziativ //
Expand Down
2 changes: 1 addition & 1 deletion fr/c.md
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ typedef void (*my_fnp_type)(char *);
// Operateurs | Associativité //
//--------------------------------------------------------//
// () [] -> . | de gauche à droite //
// ! ~ ++ -- + = *(type)sizeof | de droite à gauche //
// ! ~ ++ -- + - *(type)sizeof | de droite à gauche //
// * / % | de gauche à droite //
// + - | de gauche à droite //
// << >> | de gauche à droite //
Expand Down
2 changes: 1 addition & 1 deletion ja/c.md
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ typedef void (*my_fnp_type)(char *);
// 演算子 | 優先順位 //
//------------------------------------------------------//
// () [] -> . | 左から右 //
// ! ~ ++ -- + = *(型) sizeof | 右から左 //
// ! ~ ++ -- + - *(型) sizeof | 右から左 //
// * % | 左から右 //
// + - | 左から右 //
// << >> | 左から右 //
Expand Down
2 changes: 1 addition & 1 deletion pt-br/c.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ typedef void (*minha_função_type)(char *);
// Operadores | Associatividade //
//-----------------------------------------------------------//
// () [] -> . | esquerda para direita //
// ! ~ ++ -- + = *(type)sizeof | direita para esqureda //
// ! ~ ++ -- + - *(type)sizeof | direita para esqureda //
// * / % | esquerda para direita //
// + - | esquerda para direita //
// << >> | esquerda para direita //
Expand Down
2 changes: 1 addition & 1 deletion uk/c.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ typedef void (*my_fnp_type)(char *);
// Оператори | Асоціативність//
//---------------------------------------------------//
// () [] -> . | зліва направо //
// ! ~ ++ -- + = *(type)sizeof | справа наліво //
// ! ~ ++ -- + - *(type)sizeof | справа наліво //
// * / % | зліва направо //
// + - | зліва направо //
// << >> | зліва направо //
Expand Down
2 changes: 1 addition & 1 deletion zh-cn/c.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ typedef void (*my_fnp_type)(char *);
// 操作符 | 组合 //
//---------------------------------------------------//
// () [] -> . | 从左到右 //
// ! ~ ++ -- + = *(type)sizeof | 从右到左 //
// ! ~ ++ -- + - *(type)sizeof | 从右到左 //
// * / % | 从左到右 //
// + - | 从左到右 //
// << >> | 从左到右 //
Expand Down
Loading