clover: Silence narrowing conversion warnings in resource.cpp.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 24 Sep 2012 16:33:35 +0000 (18:33 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 24 Sep 2012 16:36:34 +0000 (18:36 +0200)
src/gallium/state_trackers/clover/core/resource.cpp

index 61085b2cb294b1f3796d96d26a7b7c43ccc5c98b..0c671f47388b1a38815b75cfa1ab2359cbde42b3 100644 (file)
@@ -31,9 +31,9 @@ namespace {
    class box {
    public:
       box(const resource::point &origin, const resource::point &size) :
-         pipe({ (unsigned)origin[0], (unsigned)origin[1],
-                (unsigned)origin[2], (unsigned)size[0],
-                (unsigned)size[1], (unsigned)size[2] }) {
+         pipe({ (int)origin[0], (int)origin[1],
+                (int)origin[2], (int)size[0],
+                (int)size[1], (int)size[2] }) {
       }
 
       operator const pipe_box *() {