Fix compiler warnings, explicitly cast by default

This commit is contained in:
Lion Kortlepel
2020-11-01 12:19:19 +01:00
parent 8bc35fb82e
commit 953131289d
11 changed files with 60 additions and 55 deletions

View File

@@ -85,15 +85,20 @@ int Dec(int value,int d,int n){
return log_power(value, d, n);
}
#ifdef __WIN32
int Handle(EXCEPTION_POINTERS *ep,char* Origin){
assert(false);
std::stringstream R;
R << Sec("Code : ") << std::hex
//<< ep->ExceptionRecord->ExceptionCode
<< ep->ExceptionRecord->ExceptionCode
<< std::dec << Sec(" Origin : ") << Origin;
except(R.str());
return 1;
}
#else
// stub
int Handle(EXCEPTION_POINTERS *, char*) { return 1; }
#endif // __WIN32
std::string RSA_E(const std::string& Data, RSA*k){
std::stringstream stream;