aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma_native_method.pyx
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-02 04:43:20 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-02 04:43:20 +0200
commit9f0f3aa33d904cf284ce757b928db23928750657 (patch)
tree3f043828cdfa09c2bb0c69d903b30cebccb3314c /src/libgamma_native_method.pyx
parentadd alternative to the libgamma_crtc_set_gamma_ramps_f functions (diff)
downloadpylibgamma-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 'src/libgamma_native_method.pyx')
-rw-r--r--src/libgamma_native_method.pyx12
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)