devel/cutter: fix build on 32-bit arches.

When updating cutter, I had accidentally removed a thought "no longer needed"
patch. This commit adds it back with a comment to hopefully ensure it doesn't
happen again.

Fixes:

```
/pobj/cutter-2.1.0/cutter-2.1.0/src/widgets/GraphGridLayout.cpp:559:28: error: non-constant-expression cannot be narrowed from type 'const unsigned long long' to 'size_t' (aka 'unsigned long') in initializer list [-Wc++11-narrowing]
        events.push_back({ it.first, 0, it.second.row, Event::Block });
                           ^~~~~~~~
```

OK sthen@, thanks.
This commit is contained in:
edd 2022-08-18 12:47:56 +00:00
parent 8079848b0c
commit 64aefea6c9

View File

@ -0,0 +1,14 @@
Fix build on 32-bit.
Index: src/widgets/GraphGridLayout.cpp
--- src/widgets/GraphGridLayout.cpp.orig
+++ src/widgets/GraphGridLayout.cpp
@@ -547,7 +547,7 @@ void GraphGridLayout::calculateEdgeMainColumn(GraphGri
struct Event
{
- size_t blockId;
+ ut64 blockId;
size_t edgeId;
int row;
enum Type { Edge = 0, Block = 1 } type;