tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a77c614c7f605a1a519887368f80714cdd542273

commit a77c614c7f605a1a519887368f80714cdd542273
Author: Tom Hacohen <t...@stosb.com>
Date:   Wed Apr 2 14:34:47 2014 +0100

    Ecore audio: Fix casting of int to void *.
    
    When doing that, intptr_t shoud be used as well.
---
 src/lib/ecore_audio/ecore_audio_obj_in_tone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_audio/ecore_audio_obj_in_tone.c 
b/src/lib/ecore_audio/ecore_audio_obj_in_tone.c
index 8ba55ad..60f6348 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_in_tone.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_in_tone.c
@@ -99,7 +99,7 @@ EOLIAN static void*
 _ecore_audio_in_tone_eo_base_data_get(Eo *eo_obj, Ecore_Audio_In_Tone_Data 
*obj, const char *key)
 {
   if (!strcmp(key, ECORE_AUDIO_ATTR_TONE_FREQ)) {
-      return (void *)obj->freq;
+      return (void *) (intptr_t) obj->freq;
   } else {
       void *ret = NULL;
       eo_do_super(eo_obj, MY_CLASS, eo_base_data_get(key, &ret));

-- 


Reply via email to