Index: samplecode/SamplePatch.cpp |
diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp |
index c630e8956abe92c0b242299e0b57c8b1570f6339..5f39eda37acc7a53ea2b29a880b31e89a81ac9b6 100644 |
--- a/samplecode/SamplePatch.cpp |
+++ b/samplecode/SamplePatch.cpp |
@@ -314,7 +314,7 @@ protected: |
unsigned modi) SK_OVERRIDE { |
for (size_t i = 0; i < SK_ARRAY_COUNT(fPts); i++) { |
if (hittest(fPts[i], x, y)) { |
- return new PtClick(this, i); |
+ return new PtClick(this, (int)i); |
} |
} |
return this->INHERITED::onFindClickHandler(x, y, modi); |