You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. From ce536d707b8e2a26baca77320398c45238224ca7 Mon Sep 17 00:00:00 2001
  2. From: Antonio Larrosa <larrosa@kde.org>
  3. Date: Fri, 10 Mar 2017 15:40:02 +0100
  4. Subject: [PATCH] Fix signature of multiplyCheckOverflow. It returns a bool,
  5. not an int
  6. ---
  7. libaudiofile/modules/MSADPCM.cpp | 2 +-
  8. sfcommands/sfconvert.c | 2 +-
  9. 2 files changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/libaudiofile/modules/MSADPCM.cpp b/libaudiofile/modules/MSADPCM.cpp
  11. index ef9c38c..d8c9553 100644
  12. --- a/libaudiofile/modules/MSADPCM.cpp
  13. +++ b/libaudiofile/modules/MSADPCM.cpp
  14. @@ -116,7 +116,7 @@ int firstBitSet(int x)
  15. #define __has_builtin(x) 0
  16. #endif
  17. -int multiplyCheckOverflow(int a, int b, int *result)
  18. +bool multiplyCheckOverflow(int a, int b, int *result)
  19. {
  20. #if (defined __GNUC__ && __GNUC__ >= 5) || ( __clang__ && __has_builtin(__builtin_mul_overflow))
  21. return __builtin_mul_overflow(a, b, result);
  22. diff --git a/sfcommands/sfconvert.c b/sfcommands/sfconvert.c
  23. index 970a3e4..367f7a5 100644
  24. --- a/sfcommands/sfconvert.c
  25. +++ b/sfcommands/sfconvert.c
  26. @@ -60,7 +60,7 @@ int firstBitSet(int x)
  27. #define __has_builtin(x) 0
  28. #endif
  29. -int multiplyCheckOverflow(int a, int b, int *result)
  30. +bool multiplyCheckOverflow(int a, int b, int *result)
  31. {
  32. #if (defined __GNUC__ && __GNUC__ >= 5) || ( __clang__ && __has_builtin(__builtin_mul_overflow))
  33. return __builtin_mul_overflow(a, b, result);
  34. --
  35. 2.11.0