Change the type of validator to long long 52/265752/1 accepted/tizen/unified/20211028.122143 submit/tizen/20211028.062653
authorcheoleun moon <chleun.moon@samsung.com>
Thu, 28 Oct 2021 05:31:02 +0000 (14:31 +0900)
committercheoleun moon <chleun.moon@samsung.com>
Thu, 28 Oct 2021 05:31:08 +0000 (14:31 +0900)
Change-Id: I4125ddc2cc4e877e2e9f6b546a92543473af2b56

src/vine-data-path.cpp

index 4789128d9467e215416c17735d0738d8657beb43..4c8468e51d13578c2b326e16d14573b08278b2de 100755 (executable)
@@ -79,14 +79,14 @@ typedef struct {
 
        vine_data_path_h listen_dp;     // only for client dp in the server side
 
-       int validator;
+       long long validator;
 } vine_data_path_s;
 
 inline bool data_path_validate(vine_data_path_s *datapath, const char *func)
 {
        RET_VAL_IF(datapath == NULL, false, "datapath is NULL");
        RET_VAL_IF(datapath->plugin_handle == NULL, false, "plugin_handle is NULL");
-       RET_VAL_IF((((int)datapath->plugin_handle) ^ ((int)datapath->validator)) != VALIDATOR_BITS, false,
+       RET_VAL_IF((((long long)datapath->plugin_handle) ^ ((long long)datapath->validator)) != VALIDATOR_BITS, false,
                        "validator fails. plugin_handle[%x] validator[%x]", datapath->plugin_handle, datapath->validator);
 
        return true;
@@ -599,7 +599,7 @@ static vine_data_path_s *_vine_data_path_create(vine_data_path_method_e method,
        }
 
        dp->state = vine_get_default_state(dp, dp->plugin_handle, *dp->plugin_fn);
-       dp->validator = (((int)dp->plugin_handle) ^ VALIDATOR_BITS);
+       dp->validator = (((long long)dp->plugin_handle) ^ VALIDATOR_BITS);
        VINE_LOGD("datapath[%p] is created. method[%d] validator[%x] plugin_handle[%p]",
                        dp, method, dp->validator, dp->plugin_handle);
        return dp;