summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-10-05 12:17:39 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2019-10-05 12:20:22 +0200
commitb0f0ad06f526a477a70675d0b6e4c38af683b077 (patch)
treed94b1581779294aa10d2f52954b22398567ad0bf
parent214536999cbfb64c07a9cfda522ae1da7087e849 (diff)
downloadvala-b0f0ad06f526a477a70675d0b6e4c38af683b077.tar.gz
tokyocabinet: Fix deprecation warnings
-rw-r--r--vapi/tokyocabinet.vapi6
1 files 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")]