termux-packages/packages/ht/htapp.cc.patch
Fredrik Fornwall 6c29aaa1c7 Transition from gnustl to libc++
This will make things as std::to_string() and other C++ features
work with a modern and supported C++ library.

We package up libc++_shared.so and bump the revision of every C++
using package to make it rebuild against it.

Users who have built C++ using libraries or programs will probably
need to rebuild them if they are linked against Termux-supplied
libraries, as user code was previously linked against gnustl while
the system libraries are now using libc++, and it's not a good idea
to mix C++ standard libraries in a program.
2017-07-14 00:23:37 +02:00

13 lines
315 B
Diff

diff -u -r ../ht-2.1.0/htapp.cc ./htapp.cc
--- ../ht-2.1.0/htapp.cc 2014-09-14 17:55:26.000000000 +0200
+++ ./htapp.cc 2017-07-13 11:21:19.614513024 +0200
@@ -3023,7 +3023,7 @@
{
uint a = 2;
uint b = u/a;
- while (abs(a - b) > 1) {
+ while (abs(a - (long long) b) > 1) {
a = (a+b)/2;
b = u/a;
}