File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c6a47e4087c226bf61964fe1105b47328553a8aa
2
+ refs/heads/master: fc0212a63bf888008cffe256663317e3472fbab4
Original file line number Diff line number Diff line change @@ -168,6 +168,24 @@ get_u16_bump(const uint8_t *&addr) {
168
168
return result;
169
169
}
170
170
171
+ template <typename T>
172
+ inline void
173
+ fmt_number (std::ostream &out, T n) {
174
+ out << n;
175
+ }
176
+
177
+ // Override the character interpretation for these two.
178
+ template <>
179
+ inline void
180
+ fmt_number<uint8_t >(std::ostream &out, uint8_t n) {
181
+ out << (int )n;
182
+ }
183
+ template <>
184
+ inline void
185
+ fmt_number<int8_t >(std::ostream &out, int8_t n) {
186
+ out << (int )n;
187
+ }
188
+
171
189
172
190
// Contexts
173
191
@@ -1015,7 +1033,7 @@ class log : public data<log,ptr> {
1015
1033
const type_param *params, const uint8_t *end_sp, bool live);
1016
1034
1017
1035
template <typename T>
1018
- void walk_number () { out << get_dp<T>(dp); }
1036
+ inline void walk_number () { fmt_number ( out, get_dp<T>(dp) ); }
1019
1037
1020
1038
public:
1021
1039
log (rust_task *in_task,
You can’t perform that action at this time.
0 commit comments