File Fix-syntax-error-by-adding-space.patch of Package cppmem
From 227307753a3c5dd4d2e977873f932118b0dec9ac Mon Sep 17 00:00:00 2001
From: Aaron Puchert <aaron.puchert@sap.com>
Date: Tue, 10 Jun 2025 22:32:55 +0200
Subject: [PATCH 2/3] Fix syntax error by adding space
The error is:
+ /usr/bin/ocamldep.opt -modules pp.ml > pp.ml.depends
File "pp.ml", line 812, characters 32-35:
812 | let pp_constraint_y = max_y - 1in
^^^
Error: Invalid literal 1in
My reading is that there should be a space. Maybe older OCaml didn't
support literals with suffixes and lexed this differently.
---
pp.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pp.ml b/pp.ml
index 0515dc1..cd18842 100644
--- a/pp.ml
+++ b/pp.ml
@@ -809,7 +809,7 @@ let pp_dot () (m,testname,(exod,exedo,exddo)) =
let pp_constraint_rank = "" in
(* The positioning depends on layout always adding an additional +2 at the end *)
let pp_constraint_x = 0 in
- let pp_constraint_y = max_y - 1in
+ let pp_constraint_y = max_y - 1 in
let pp_constraint () vc =
if vc = Constraints.ctrue then ""
--
2.43.0