use void* instead of ptrdiff_t out of possible GC precise concerns

This commit is contained in:
Adam D. Ruppe 2022-06-18 15:15:50 -04:00
parent d0fb5f2e44
commit e36512f1d4
1 changed files with 2 additions and 2 deletions

View File

@ -4562,7 +4562,7 @@ class ListWidget : ListWidgetBase {
static struct Option { static struct Option {
string label; string label;
bool selected; bool selected;
ptrdiff_t tag; void* tag;
} }
/++ /++
@ -4660,7 +4660,7 @@ class ListWidget : ListWidgetBase {
mixin OverrideStyle!Style; mixin OverrideStyle!Style;
//mixin Padding!q{2}; //mixin Padding!q{2};
void addOption(string text, ptrdiff_t tag = 0) { void addOption(string text, void* tag = null) {
options ~= Option(text, false, tag); options ~= Option(text, false, tag);
version(win32_widgets) { version(win32_widgets) {
WCharzBuffer buffer = WCharzBuffer(text); WCharzBuffer buffer = WCharzBuffer(text);