include/o3tl/safeint.hxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 248777ee5135870faecf4188cac0ab3cf708e8e2
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Sep 8 17:17:18 2024 +0500
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Sep 8 19:49:40 2024 +0200

    Add a comment about possible use of standard functions, when/if available
    
    Change-Id: Ia5c217c7388c1f8198cfb09fb5733c1ab08bc12f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173043
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/include/o3tl/safeint.hxx b/include/o3tl/safeint.hxx
index 80f8b45c4042..a9d1ef23b32b 100644
--- a/include/o3tl/safeint.hxx
+++ b/include/o3tl/safeint.hxx
@@ -70,6 +70,8 @@ typename std::enable_if<std::is_signed<T>::value, T>::type 
saturating_toggle_sig
     return a * -1;
 }
 
+// TODO: reimplement using ckd_add/ckd_sub/ckd_mul from <stdckdint.h>, when 
C23 is part of C++
+
 #if defined(_MSC_VER)
 
 template<typename T> inline bool checked_multiply(T a, T b, T& result)

Reply via email to