1 diff -ur graphite.org/src/inc/json.h graphite/src/inc/json.h
2 --- graphite.org/src/inc/json.h 2015-02-03 14:49:24.408101900 +0100
3 +++ graphite/src/inc/json.h 2015-02-03 14:50:59.697552200 +0100
5 json & operator << (string) throw();
6 json & operator << (number) throw();
7 json & operator << (integer) throw();
9 + json & operator << (size_t) throw();
11 json & operator << (long unsigned int d) throw();
12 json & operator << (boolean) throw();
13 json & operator << (_null_t) throw();
14 diff -ur graphite.org/src/json.cpp graphite/src/json.cpp
15 --- graphite.org/src/json.cpp 2015-02-03 14:49:24.409102000 +0100
16 +++ graphite/src/json.cpp 2015-02-03 14:50:49.814986900 +0100
18 json & json::operator << (json::number f) throw() { context(seq); fprintf(_stream, "%g", f); return *this; }
19 json & json::operator << (json::integer d) throw() { context(seq); fprintf(_stream, "%ld", d); return *this; }
20 json & json::operator << (long unsigned d) throw() { context(seq); fprintf(_stream, "%ld", d); return *this; }
22 +json & json::operator << (size_t d) throw() { context(seq); fprintf(_stream, "%ld", d); return *this; }
24 json & json::operator << (json::boolean b) throw() { context(seq); fputs(b ? "true" : "false", _stream); return *this; }
25 json & json::operator << (json::_null_t) throw() { context(seq); fputs("null",_stream); return *this; }
27 diff -ur graphite.org/src/Pass.cpp graphite/src/Pass.cpp
28 --- graphite.org/src/Pass.cpp 2015-02-03 14:49:24.413102200 +0100
29 +++ graphite/src/Pass.cpp 2015-02-03 14:50:37.873303900 +0100
32 if (r->rule->preContext > fsm.slots.context()) continue;
33 *fsm.dbgout << json::flat << json::object
34 - << "id" << r->rule - m_rules
35 + << "id" << static_cast<size_t>(r->rule - m_rules)
37 << "input" << json::flat << json::object
38 << "start" << objectid(dslot(&fsm.slots.segment, input_slot(fsm.slots, -r->rule->preContext)))
40 void Pass::dumpRuleEventOutput(const FiniteStateMachine & fsm, const Rule & r, Slot * const last_slot) const
42 *fsm.dbgout << json::item << json::flat << json::object
43 - << "id" << &r - m_rules
44 + << "id" << static_cast<size_t>(&r - m_rules)
46 << "input" << json::flat << json::object
47 << "start" << objectid(dslot(&fsm.slots.segment, input_slot(fsm.slots, 0)))