invalid conversion from 'int' to 'void*'; refs #7

master
Marc Wäckerlin 11 years ago
parent 414b1a17a0
commit e038c044d1
  1. 4
      src/stacktrace.cxx

@ -323,11 +323,11 @@ mrw::StackTrace::BinFiles mrw::StackTrace::filename()
prpsinfo_t status;
if (fd==-1 || ioctl(fd, PIOCPSINFO, &status)==-1) return res;
s = status.pr_psargs;
return res<<BinFiles::value_type(s.substr(0, s.find(' ')), 0);
return res<<BinFiles::value_type(s.substr(0, s.find(' ')), (void*)0);
}
# elif defined(__linux__)
{
res<<BinFiles::value_type("/proc/self/exe", 0);
res<<BinFiles::value_type("/proc/self/exe", (void*)0);
std::ifstream is("/proc/self/maps");
std::string s;
std::string range, perm, x1, x2, size, lib;

Loading…
Cancel
Save