Commit 52db30e
committed
[lldb] Fix compiler error in ValueObject tests
Fixes 0cbc498.
error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
71 | in_value.GetLocalBufferSize()};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Given this is test code, I think a static cast is fine here.
Tiny risk that it's actually a symptom of a bug that would
happen if you did 32-bit to 64-bit debugging. I expect you'd
find a lot more bugs than that though.1 parent 6424abc commit 52db30e
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments