Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 888770 Details for
Bug 895762
net-p2p/retroshare-0.6.6-r1 - gui/.../Histogram.h: error: uint32_t was not declared in this scope
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
net-p2p/retroshare/files: retroshare-0.6.6-fix-uint32_t-compilation.patch
retroshare-0.6.6-fix-uint32_t-compilation.patch (text/plain), 1.63 KB, created by
mehw
on 2024-03-27 14:28:01 UTC
(
hide
)
Description:
net-p2p/retroshare/files: retroshare-0.6.6-fix-uint32_t-compilation.patch
Filename:
MIME Type:
Creator:
mehw
Created:
2024-03-27 14:28:01 UTC
Size:
1.63 KB
patch
obsolete
>Adapt upstream patches e1934fd9b03cd52c556eb06d94fb5d68b649592e, and >15128192003722a3686c1b6f27132ba064cd1705. > >Also, the solution to the uint32_t compilation error is suggested by >the compiler too. > >In file included from gui/statistics/Histogram.cpp:23: >gui/statistics/Histogram.h:35:27: error: âuint32_tâ was not declared in this scope > 35 | const std::vector<uint32_t>& entries() const { return mBins; } > | ^~~~~~~~ >gui/statistics/Histogram.h:23:1: note: âuint32_tâ is defined in header â<cstdint>â; did you forget to â#include <cstdint>â? > 22 | #include <iostream> > +++ |+#include <cstdint> > >diff -Nuar a/retroshare-gui/src/gui/statistics/Histogram.cpp b/retroshare-gui/src/gui/statistics/Histogram.cpp >--- a/retroshare-gui/src/gui/statistics/Histogram.cpp 2020-08-13 09:22:05.000000000 +0000 >+++ b/retroshare-gui/src/gui/statistics/Histogram.cpp 2024-03-27 12:48:44.923065614 +0000 >@@ -39,9 +39,9 @@ > > void Histogram::insert(double val) > { >- long int bin = (uint32_t)floor((val - mStart)/(mEnd - mStart) * mBins.size()); >+ long int bin = (long int)floor((val - mStart)/(mEnd - mStart) * mBins.size()); > >- if(bin >= 0 && bin < mBins.size()) >+ if(bin >= 0 && bin < (long int)mBins.size()) > ++mBins[bin]; > } > >diff -Nuar a/retroshare-gui/src/gui/statistics/Histogram.h b/retroshare-gui/src/gui/statistics/Histogram.h >--- a/retroshare-gui/src/gui/statistics/Histogram.h 2020-08-13 09:22:05.000000000 +0000 >+++ b/retroshare-gui/src/gui/statistics/Histogram.h 2024-03-27 12:48:44.923065614 +0000 >@@ -20,6 +20,7 @@ > > #include <vector> > #include <iostream> >+#include <cstdint> > > class QPainter; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 895762
:
853570
|
853572
|
853574
|
853576
|
853578
|
853580
|
853582
|
853584
|
874822
|
888476
| 888770