From: Rico Tzschichholz Date: Sat, 5 Oct 2019 10:17:39 +0000 (+0200) Subject: tokyocabinet: Fix deprecation warnings X-Git-Tag: 0.47.1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0f0ad06f526a477a70675d0b6e4c38af683b077;p=thirdparty%2Fvala.git tokyocabinet: Fix deprecation warnings --- 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")]