summaryrefslogtreecommitdiff
path: root/prism/util/pm_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'prism/util/pm_buffer.h')
-rw-r--r--prism/util/pm_buffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/prism/util/pm_buffer.h b/prism/util/pm_buffer.h
index f494a0ca03..857d17ae52 100644
--- a/prism/util/pm_buffer.h
+++ b/prism/util/pm_buffer.h
@@ -201,10 +201,10 @@ void pm_buffer_rstrip(pm_buffer_t *buffer);
*
* @param buffer The buffer to check.
* @param value The value to check for.
- * @returns The index of the first occurrence of the value in the buffer, or -1
- * if the value is not found.
+ * @returns The index of the first occurrence of the value in the buffer, or
+ * SIZE_MAX if the value is not found.
*/
-ssize_t pm_buffer_index(const pm_buffer_t *buffer, char value);
+size_t pm_buffer_index(const pm_buffer_t *buffer, char value);
/**
* Insert the given string into the buffer at the given index.