diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-20 07:38:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-20 07:40:05 +0300 |
commit | 2a6df7dfe5ae9c25780166771c56ff921cc90f63 (patch) | |
tree | ad638ee71b52f5915b937bf538051f49b0ac120b /source/blender/python/mathutils/mathutils.c | |
parent | 1e3ffd1f872b1a52a5c392b135c29ae71744137d (diff) |
Cleanup: use named unsigned types in the Python API
Diffstat (limited to 'source/blender/python/mathutils/mathutils.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c index 2b1ddbbb03a..5764db4e70c 100644 --- a/source/blender/python/mathutils/mathutils.c +++ b/source/blender/python/mathutils/mathutils.c @@ -125,7 +125,7 @@ Py_hash_t mathutils_array_hash(const float *array, size_t array_len) int mathutils_array_parse( float *array, int array_min, int array_max, PyObject *value, const char *error_prefix) { - const unsigned int flag = array_max; + const uint flag = array_max; int size; array_max &= ~MU_ARRAY_FLAGS; @@ -540,7 +540,7 @@ int mathutils_any_to_rotmat(float rmat[3][3], PyObject *value, const char *error * [3] https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ * instead. */ -#define SIGNMASK(i) (-(int)(((unsigned int)(i)) >> 31)) +#define SIGNMASK(i) (-(int)(((uint)(i)) >> 31)) int EXPP_FloatsAreEqual(float af, float bf, int maxDiff) { @@ -593,9 +593,9 @@ PyObject *mathutils_dynstr_to_py(struct DynStr *ds) #define MATHUTILS_TOT_CB 17 static Mathutils_Callback *mathutils_callbacks[MATHUTILS_TOT_CB] = {NULL}; -unsigned char Mathutils_RegisterCallback(Mathutils_Callback *cb) +uchar Mathutils_RegisterCallback(Mathutils_Callback *cb) { - unsigned char i; + uchar i; /* find the first free slot */ for (i = 0; mathutils_callbacks[i]; i++) { |