fixed build test sscanf() arg order

This commit is contained in:
Josh Holtrop 2010-05-21 10:48:46 -04:00
parent 9055f591f9
commit dfbd319329

View File

@ -17,12 +17,12 @@ ${
uint64_t value; uint64_t value;
$} $}
%{ %{
sscanf("%lld", matches[1].c_str(), &value); sscanf(matches[0].c_str(), "%lld", &value);
cout << "value: " << value << endl; cout << "value: " << value << endl;
%} %}
HEX_INT 0x([0-9a-fA-F]+)\b ${ uint64_t value; $} %{ HEX_INT 0x([0-9a-fA-F]+)\b ${ uint64_t value; $} %{
sscanf("%llx", matches[1].c_str(), &value); sscanf(matches[1].c_str(), "%llx", &value);
cout << "value: " << value << endl; cout << "value: " << value << endl;
%} %}