src/fingerprint.c |    2 +-
 src/fingerprint.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 55cf4d615aafd0522715be293f7d017ca1512f2a
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat May 16 12:20:55 2026 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat May 16 13:21:11 2026 +0200

    use size_t instead of narrowing
    
    Change-Id: I5c04b761a1948c7a193df8baf5e0e38d8284335a
    Reviewed-on: https://gerrit.libreoffice.org/c/libexttextcat/+/205237
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/src/fingerprint.c b/src/fingerprint.c
index 108edcb..f086686 100644
--- a/src/fingerprint.c
+++ b/src/fingerprint.c
@@ -598,7 +598,7 @@ extern int fp_SetProperty(void *handle, textcat_Property 
property, sint4 value)
  * - take the most frequent n-grams
  * - sort them alphabetically, recording their relative rank
  */
-extern int fp_Create(void *handle, const char *buffer, uint4 bufsize,
+extern int fp_Create(void *handle, const char *buffer, size_t bufsize,
                      uint4 maxngrams)
 {
     sint4 i = 0;
diff --git a/src/fingerprint.h b/src/fingerprint.h
index fe7eb10..2c8999f 100644
--- a/src/fingerprint.h
+++ b/src/fingerprint.h
@@ -44,7 +44,7 @@ extern "C"
 
     extern void *fp_Init(const char *name);
     extern void fp_Done(void *handle);
-    extern int fp_Create(void *handle, const char *buffer, uint4 bufsize,
+    extern int fp_Create(void *handle, const char *buffer, size_t bufsize,
                          uint4 maxngrams);
     extern int fp_SetProperty(void *handle, textcat_Property property,
                               sint4 value);

Reply via email to