mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 05:06:34 +02:00
33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
Patch-Source: https://github.com/rizinorg/cutter/commit/1a52a7eea43e2d3d3c429b4826b39b3e31b9026d.patch
|
|
--
|
|
From 1a52a7eea43e2d3d3c429b4826b39b3e31b9026d Mon Sep 17 00:00:00 2001
|
|
From: Anton Kochkov <anton.kochkov@gmail.com>
|
|
Date: Mon, 19 Feb 2024 23:08:32 +0800
|
|
Subject: [PATCH] Fix compilation error of undefined TRUE
|
|
|
|
---
|
|
src/widgets/GraphvizLayout.cpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/widgets/GraphvizLayout.cpp b/src/widgets/GraphvizLayout.cpp
|
|
index f2a53b3ce3..eb1fe4e3f8 100644
|
|
--- a/src/widgets/GraphvizLayout.cpp
|
|
+++ b/src/widgets/GraphvizLayout.cpp
|
|
@@ -94,7 +94,7 @@ void GraphvizLayout::CalculateLayout(std::unordered_map<ut64, GraphBlock> &block
|
|
|
|
std::unordered_map<ut64, Agnode_t *> nodes;
|
|
for (const auto &block : blocks) {
|
|
- nodes[block.first] = agnode(g, nullptr, TRUE);
|
|
+ nodes[block.first] = agnode(g, nullptr, true);
|
|
}
|
|
|
|
std::vector<std::string> strc;
|
|
@@ -143,7 +143,7 @@ void GraphvizLayout::CalculateLayout(std::unordered_map<ut64, GraphBlock> &block
|
|
if (v == nodes.end()) {
|
|
continue;
|
|
}
|
|
- auto e = agedge(g, u, v->second, nullptr, TRUE);
|
|
+ auto e = agedge(g, u, v->second, nullptr, true);
|
|
edges[{ blockIt.first, edge.target }] = e;
|
|
if (loopEdges.find({ blockIt.first, edge.target }) != loopEdges.end()) {
|
|
agxset(e, constraintAttr, STR("0"));
|