diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-02 04:43:20 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-02 04:43:20 +0200 |
commit | 9f0f3aa33d904cf284ce757b928db23928750657 (patch) | |
tree | 3f043828cdfa09c2bb0c69d903b30cebccb3314c /src/libgamma_native_method.pyx | |
parent | add alternative to the libgamma_crtc_set_gamma_ramps_f functions (diff) | |
download | pylibgamma-9f0f3aa33d904cf284ce757b928db23928750657.tar.gz pylibgamma-9f0f3aa33d904cf284ce757b928db23928750657.tar.bz2 pylibgamma-9f0f3aa33d904cf284ce757b928db23928750657.tar.xz |
some of libgamma-facade
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/libgamma_native_method.pyx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libgamma_native_method.pyx b/src/libgamma_native_method.pyx index 7e9a867..58ab1a3 100644 --- a/src/libgamma_native_method.pyx +++ b/src/libgamma_native_method.pyx @@ -273,7 +273,7 @@ def libgamma_native_gamma_ramps8_create(red_size : int, green_size : int, blue_s cdef void* allocation = malloc(sizeof(libgamma_gamma_ramps8_t)) cdef libgamma_gamma_ramps8_t* item = <libgamma_gamma_ramps8_t*>allocation cdef size_t red, green, blue - if item == NULL: + if item is NULL: return errno red = <size_t><void*>(item.red) green = <size_t><void*>(item.green) @@ -339,7 +339,7 @@ def libgamma_native_gamma_ramps16_create(red_size : int, green_size : int, blue_ cdef void* allocation = malloc(sizeof(libgamma_gamma_ramps16_t)) cdef libgamma_gamma_ramps16_t* item = <libgamma_gamma_ramps16_t*>allocation cdef size_t red, green, blue - if item == NULL: + if item is NULL: return errno red = <size_t><void*>(item.red) green = <size_t><void*>(item.green) @@ -405,7 +405,7 @@ def libgamma_native_gamma_ramps32_create(red_size : int, green_size : int, blue_ cdef void* allocation = malloc(sizeof(libgamma_gamma_ramps32_t)) cdef libgamma_gamma_ramps32_t* item = <libgamma_gamma_ramps32_t*>allocation cdef size_t red, green, blue - if item == NULL: + if item is NULL: return errno red = <size_t><void*>(item.red) green = <size_t><void*>(item.green) @@ -471,7 +471,7 @@ def libgamma_native_gamma_ramps64_create(red_size : int, green_size : int, blue_ cdef void* allocation = malloc(sizeof(libgamma_gamma_ramps64_t)) cdef libgamma_gamma_ramps64_t* item = <libgamma_gamma_ramps64_t*>allocation cdef size_t red, green, blue - if item == NULL: + if item is NULL: return errno red = <size_t><void*>(item.red) green = <size_t><void*>(item.green) @@ -537,7 +537,7 @@ def libgamma_native_gamma_rampsf_create(red_size : int, green_size : int, blue_s cdef void* allocation = malloc(sizeof(libgamma_gamma_rampsf_t)) cdef libgamma_gamma_rampsf_t* item = <libgamma_gamma_rampsf_t*>allocation cdef size_t red, green, blue - if item == NULL: + if item is NULL: return errno red = <size_t><void*>(item.red) green = <size_t><void*>(item.green) @@ -603,7 +603,7 @@ def libgamma_native_gamma_rampsd_create(red_size : int, green_size : int, blue_s cdef void* allocation = malloc(sizeof(libgamma_gamma_rampsd_t)) cdef libgamma_gamma_rampsd_t* item = <libgamma_gamma_rampsd_t*>allocation cdef size_t red, green, blue - if item == NULL: + if item is NULL: return errno red = <size_t><void*>(item.red) green = <size_t><void*>(item.green) |