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:
parent
8079848b0c
commit
64aefea6c9
14
devel/cutter/patches/patch-src_widgets_GraphGridLayout_cpp
Normal file
14
devel/cutter/patches/patch-src_widgets_GraphGridLayout_cpp
Normal 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;
|
Loading…
Reference in New Issue
Block a user