Files
MINGW-packages/mingw-w64-openshadinglanguage/0005-Fix-cast-from-void-ptr.patch
2014-01-08 12:13:32 +04:00

21 lines
739 B
Diff

--- openshadinglanguage/src/liboslexec/automata.cpp.orig 2014-01-08 02:50:41.861748000 +0000
+++ openshadinglanguage/src/liboslexec/automata.cpp 2014-01-08 02:51:50.600679600 +0000
@@ -137,7 +137,7 @@
// and finally the rule if we have it
if (m_rule) {
s += " | ";
- s += Strutil::format("%lx", (long unsigned int)m_rule);
+ s += Strutil::format("%p", m_rule);
}
return s;
}
@@ -387,7 +387,7 @@
for (RuleSet::const_iterator i = m_rules.begin(); i != m_rules.end(); ++i) {
if (s[s.size()-1] != '[')
s += ", ";
- s += Strutil::format("%lx", (long unsigned int)*i);
+ s += Strutil::format("%p", *i);
}
s += "]";
}