From 7b1e7df79ce778e285bf138830b9bef1ab4796b3 Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 13 Oct 2016 12:45:03 -0400 Subject: [PATCH] P4 to Git Change 1326088 by gandryey@gera-brahma on 2016/10/13 12:23:26 SWDEV-86035 - Support for PAL Linux build Affected files ... ... //depot/stg/opencl/drivers/opencl/appprofiles/brahma/apl.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.cpp#6 edit --- rocclr/runtime/device/pal/palcounters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/runtime/device/pal/palcounters.cpp b/rocclr/runtime/device/pal/palcounters.cpp index 9a482053ca..33f8ddd54c 100644 --- a/rocclr/runtime/device/pal/palcounters.cpp +++ b/rocclr/runtime/device/pal/palcounters.cpp @@ -69,7 +69,7 @@ uint64_t PalCounterReference::result(int index) } if (layout_ != nullptr) { - assert(index <= layout_->sampleCount && "index not in range"); + assert(index <= static_cast(layout_->sampleCount) && "index not in range"); const Pal::GlobalSampleLayout& sample = layout_->samples[index]; if (sample.dataType == Pal::PerfCounterDataType::Uint32) { uint32_t beginVal = *reinterpret_cast(reinterpret_cast(cpuAddr_) + sample.beginValueOffset);