forked from pool/cpprest
- cpprest-2.10.9-disable-test-extract_floating_point.patch: Only disable the problematic test - base64.patch: Portable base64 - filestream.patch: Fix type mismatch in basic_file_buffer OBS-URL: https://build.opensuse.org/request/show/860140 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=49
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
Index: cpprestsdk-2.10.16/Release/include/cpprest/filestream.h
|
|
===================================================================
|
|
--- cpprestsdk-2.10.16.orig/Release/include/cpprest/filestream.h
|
|
+++ cpprestsdk-2.10.16/Release/include/cpprest/filestream.h
|
|
@@ -399,7 +399,7 @@ protected:
|
|
{
|
|
pplx::extensibility::scoped_recursive_lock_t lck(m_info->m_lock);
|
|
m_info->m_rdpos += 1;
|
|
- _CharType ch1 = (_CharType)callback->m_ch;
|
|
+ _CharType ch1 = callback->m_ch;
|
|
delete callback;
|
|
return pplx::task_from_result<int_type>(ch1);
|
|
}
|
|
@@ -453,7 +453,7 @@ protected:
|
|
if (ch == sizeof(_CharType))
|
|
{
|
|
pplx::extensibility::scoped_recursive_lock_t lck(m_info->m_lock);
|
|
- _CharType ch1 = (_CharType)callback->m_ch;
|
|
+ _CharType ch1 = callback->m_ch;
|
|
delete callback;
|
|
return pplx::task_from_result<int_type>(ch1);
|
|
}
|
|
@@ -889,7 +889,7 @@ private:
|
|
delete this;
|
|
}
|
|
|
|
- int_type m_ch;
|
|
+ _CharType m_ch;
|
|
|
|
private:
|
|
_file_info* m_info;
|
|
@@ -917,7 +917,7 @@ private:
|
|
delete this;
|
|
}
|
|
|
|
- int_type m_ch;
|
|
+ _CharType m_ch;
|
|
|
|
virtual void on_error(const std::exception_ptr& e)
|
|
{
|