aboutsummaryrefslogtreecommitdiffstats
path: root/cfrontend
diff options
context:
space:
mode:
authorXavier Leroy <xavierleroy@users.noreply.github.com>2015-04-01 16:54:03 +0200
committerXavier Leroy <xavierleroy@users.noreply.github.com>2015-04-01 16:54:03 +0200
commit5d6febecb8c0f90a627033744f6f62164645a1a4 (patch)
treee6497afc2c0912c603d984c8693dbd91cb1118be /cfrontend
parent47a6b116069cff9c71466bde1fd87d0775ec9175 (diff)
parent04eda5b197e0a20367d0f245ab595a9dc7d1344a (diff)
downloadcompcert-kvx-5d6febecb8c0f90a627033744f6f62164645a1a4.tar.gz
compcert-kvx-5d6febecb8c0f90a627033744f6f62164645a1a4.zip
Merge pull request #35 from jhjourdan/master
Fix overflows in printers for clight and csyntax.
Diffstat (limited to 'cfrontend')
-rw-r--r--cfrontend/PrintClight.ml2
-rw-r--r--cfrontend/PrintCsyntax.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/cfrontend/PrintClight.ml b/cfrontend/PrintClight.ml
index ebd06c54..f1c3ef18 100644
--- a/cfrontend/PrintClight.ml
+++ b/cfrontend/PrintClight.ml
@@ -206,7 +206,7 @@ and print_cases p cases =
and print_case_label p = function
| None -> fprintf p "default"
- | Some lbl -> fprintf p "case %ld" (camlint_of_coqint lbl)
+ | Some lbl -> fprintf p "case %s" (Z.to_string lbl)
and print_stmt_for p s =
match s with
diff --git a/cfrontend/PrintCsyntax.ml b/cfrontend/PrintCsyntax.ml
index 8a4d60a5..882272b8 100644
--- a/cfrontend/PrintCsyntax.ml
+++ b/cfrontend/PrintCsyntax.ml
@@ -346,7 +346,7 @@ and print_cases p cases =
and print_case_label p = function
| None -> fprintf p "default"
- | Some lbl -> fprintf p "case %ld" (camlint_of_coqint lbl)
+ | Some lbl -> fprintf p "case %s" (Z.to_string lbl)
and print_stmt_for p s =
match s with