[Beignet] [PATCH 1/5] GBE: Fix a typo in RelocTable
Ruiling Song
ruiling.song at intel.com
Thu Apr 7 06:39:54 UTC 2016
Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
backend/src/ir/unit.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/ir/unit.hpp b/backend/src/ir/unit.hpp
index b8df145..ce603a0 100644
--- a/backend/src/ir/unit.hpp
+++ b/backend/src/ir/unit.hpp
@@ -58,7 +58,7 @@ namespace ir {
entries(other.entries) {}
uint32_t getCount() { return entries.size(); }
void getData(char *p) {
- if (entries.size() > 1 && p)
+ if (entries.size() > 0 && p)
memcpy(p, entries.data(), entries.size()*sizeof(RelocEntry));
}
static const uint32_t magic_begin = TO_MAGIC('R', 'E', 'L', 'C');
--
2.4.1
More information about the Beignet
mailing list