mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Make minor improvements
This commit is contained in:
parent
1fc91f3580
commit
b562d6fdb3
41 changed files with 1948 additions and 92 deletions
4
third_party/chibicc/codegen.c
vendored
4
third_party/chibicc/codegen.c
vendored
|
@ -1770,9 +1770,9 @@ void gen_expr(Node *node) {
|
|||
println("\tdiv\t%s", di);
|
||||
} else {
|
||||
if (node->lhs->ty->size == 8) {
|
||||
emitlin("\tcqo");
|
||||
emitlin("\tcqto");
|
||||
} else {
|
||||
emitlin("\tcdq");
|
||||
emitlin("\tcltd");
|
||||
}
|
||||
println("\tidiv\t%s", di);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue