[vala/0.46] tokyocabinet: Fix deprecation warnings



commit 6aff894a4bb907c1b3bd5e4e7b82aba23ff6013d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Oct 5 12:17:39 2019 +0200

    tokyocabinet: Fix deprecation warnings

 vapi/tokyocabinet.vapi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/tokyocabinet.vapi b/vapi/tokyocabinet.vapi
index 019743bd6..af999f91f 100644
--- a/vapi/tokyocabinet.vapi
+++ b/vapi/tokyocabinet.vapi
@@ -439,7 +439,7 @@ namespace TokyoCabinet {
                }
                public string? get_string (string key) {
                        unowned uint8[] kbuf = (uint8[]) key;
-                       kbuf.length = (int) key.size ();
+                       kbuf.length = key.length;
                        return (string) this.get (kbuf);
                }
                [CCode (cname = "tcndbvsiz")]
@@ -585,7 +585,7 @@ namespace TokyoCabinet {
                [CCode (cname = "_vala_tchdbget2")]
                public string? get_string (string key) {
                        unowned uint8[] kbuf = (uint8[]) key;
-                       kbuf.length = (int) key.size ();
+                       kbuf.length = key.length;
                        return (string) this.get (kbuf);
                }
                [CCode (cname = "tchdbvsiz")]
@@ -730,7 +730,7 @@ namespace TokyoCabinet {
                }
                public string? get_string (string key) {
                        unowned uint8[] k = (uint8[]) key;
-                       k.length = (int) key.size ();
+                       k.length = key.length;
                        return (string) this._get (k);
                }
                [CCode (cname = "tcbdbget4")]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]