Commit 3a179305 authored by MARCHE Claude's avatar MARCHE Claude
Browse files

fix C driver for signed literals

parent 398c8189
......@@ -23,9 +23,8 @@ end
module mach.int.Int32
syntax type int32 "int32_t"
syntax literal int32 "0x%8x"
syntax literal int32 "%d"
syntax val of_int "(int32_t)(%1)"
syntax val (+) "%1 + %2"
syntax val (-) "%1 - %2"
syntax val (-_) "-%1"
......@@ -221,9 +220,8 @@ end
module mach.int.Int64
syntax type int64 "int64_t"
syntax literal int64 "0x%16xLL"
syntax literal int64 "%dLL"
syntax val of_int "(int64_t)(%1)"
syntax val (+) "%1 + %2"
syntax val (-) "%1 - %2"
syntax val (-_) "-%1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment