aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-07-01 21:32:20 +0200
committerClombrong <cromblong@egregore.fun>2025-07-26 21:55:50 +0200
commit2e2f475c5c631b61d061e7a308826214770fef47 (patch)
tree06063ef9192d3eb4476a07ea9e5f64e42a278701
parent536c401f51ba8d58cb16858c42869069e2e52598 (diff)
fix(jid): uchars_of_string starts parsing string to 0 now...
-rw-r--r--lib/jid.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jid.ml b/lib/jid.ml
index f6c691a..ab2e0e5 100644
--- a/lib/jid.ml
+++ b/lib/jid.ml
@@ -22,7 +22,7 @@ let uchars_of_string s : uchars =
let k = utf_decode_length c in
let u = utf_decode_uchar c in
loop (u :: acc) (i + k)
- in loop [] (String.length s)
+ in loop [] 0
let string_of_uchars (u : uchars) =
let buf = Buffer.create (4 * List.length u) in