diff options
author | zhuyaliang <[email protected]> | 2023-10-24 19:56:51 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-11-06 12:56:20 +0100 |
commit | 688ec2f47167fcca1c3e14854b69640479422794 (patch) | |
tree | 4f4f2a806da2dca2bfc13aea2a74fa0a08fdb4a4 /src/egg-array-float.c | |
parent | 9a8cfd772538539776654401d7a1293595405c90 (diff) | |
download | mate-power-manager-688ec2f47167fcca1c3e14854b69640479422794.tar.bz2 mate-power-manager-688ec2f47167fcca1c3e14854b69640479422794.tar.xz |
Remove compilation warning fix data type format error
Diffstat (limited to 'src/egg-array-float.c')
-rw-r--r-- | src/egg-array-float.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egg-array-float.c b/src/egg-array-float.c index 0c4d15c..e4c2a34 100644 --- a/src/egg-array-float.c +++ b/src/egg-array-float.c @@ -76,7 +76,7 @@ gfloat egg_array_float_get (EggArrayFloat *array, guint i) { if (i >= array->len) - g_error ("above index! (%i)", i); + g_error ("above index! (%u)", i); return g_array_index (array, gfloat, i); } @@ -150,7 +150,7 @@ egg_array_float_compute_gaussian (guint length, gfloat sigma) half_length = (length / 2) + 1; for (i=0; i<half_length; i++) { division = half_length - (i + 1); - g_debug ("half_length=%i, div=%f, sigma=%f", half_length, division, sigma); + g_debug ("half_length=%u, div=%f, sigma=%f", half_length, division, sigma); g_array_index (array, gfloat, i) = egg_array_float_guassian_value (division, sigma); } @@ -207,7 +207,7 @@ egg_array_float_print (EggArrayFloat *array) length = array->len; /* debug out */ for (i=0; i<length; i++) - g_debug ("[%i]\tval=%f", i, g_array_index (array, gfloat, i)); + g_debug ("[%u]\tval=%f", i, g_array_index (array, gfloat, i)); return TRUE; } |