summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJukka Ojanen <jukka.ojanen@linkotec.net>2014-12-07 12:08:23 +0200
committerJukka Ojanen <jukka.ojanen@linkotec.net>2014-12-07 12:08:23 +0200
commit32b519b6b766c5f310068aaed092cade8b31d078 (patch)
tree308281dba965bfb2fe283a090e6c93a79161cd64 /src
parentd5496f9a78bb45192b176bd32d4b81c72fb576dd (diff)
downloadffts-32b519b6b766c5f310068aaed092cade8b31d078.zip
ffts-32b519b6b766c5f310068aaed092cade8b31d078.tar.gz
Fix warning "cast from pointer to integer of different size"
Diffstat (limited to 'src')
-rw-r--r--src/ffts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ffts.c b/src/ffts.c
index ee0102b..c682b28 100644
--- a/src/ffts.c
+++ b/src/ffts.c
@@ -151,11 +151,11 @@ void ffts_execute(ffts_plan_t *p, const void *in, void *out)
{
/* TODO: Define NEEDS_ALIGNED properly instead */
#if defined(HAVE_SSE) || defined(HAVE_NEON)
- if (((int) in % 16) != 0) {
+ if (((uintptr_t) in % 16) != 0) {
LOG("ffts_execute: input buffer needs to be aligned to a 128bit boundary\n");
}
- if (((int) out % 16) != 0) {
+ if (((uintptr_t) out % 16) != 0) {
LOG("ffts_execute: output buffer needs to be aligned to a 128bit boundary\n");
}
#endif
OpenPOWER on IntegriCloud