Fix build error with GCC 6.1.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Sun, 12 Jun 2016 19:25:14 +0000 (21:25 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Sun, 12 Jun 2016 19:29:19 +0000 (21:29 +0200)
intern/cycles/graph/node_type.h

index e84631cd59d29ec0a8c01aaf29450f9312b37d2d..60c3244028d51803d1382bba2927675b9d66c33f 100644 (file)
@@ -155,7 +155,7 @@ const NodeType *structname::register_type()
 #define SOCKET_DEFINE(name, ui_name, default_value, datatype, TYPE, flags, ...) \
        { \
                static datatype defval = default_value; \
-               CHECK_TYPE_PAIR(((T *)1)->name, datatype); \
+               CHECK_TYPE(((T *)1)->name, datatype); \
                type->register_input(ustring(#name), ustring(ui_name), TYPE, SOCKET_OFFSETOF(T, name), &defval, NULL, NULL, flags, ##__VA_ARGS__); \
        }