e_policy: Fix invalid type cast 65/316965/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 2 Sep 2024 02:47:21 +0000 (11:47 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 2 Sep 2024 04:10:40 +0000 (13:10 +0900)
only_free type is Eina_Bool

Change-Id: I25563a69f50dcedc8a4ee7f74bd6a07302ca3a8b

src/bin/windowmgr/e_policy.c

index 6c4f02a3f52082a83111e3da465b496699b3a9c9..11bf3a5da8b54418f253c7b767f4778ce68b0334 100644 (file)
@@ -2329,7 +2329,7 @@ _e_policy_client_cb_pixmap_buffer_clear(struct wl_listener *listener, void *data
    E_Tizen_Surface_Shm_Flusher *surface_shm_flusher;
    E_Policy_Client *policy_client;
    E_Client *ec;
-   int only_free;
+   Eina_Bool only_free;
 
    policy_client = wl_container_of(listener, policy_client, pixmap_buffer_clear);
 
@@ -2339,7 +2339,7 @@ _e_policy_client_cb_pixmap_buffer_clear(struct wl_listener *listener, void *data
    // return if buffer_flush is not supported
    if (!ec->exp_iconify.buffer_flush) return;
 
-   only_free = *(int *)data;
+   only_free = *(Eina_Bool *)data;
 
    if (only_free)
      {