From b8d7eabc023bf9db0150049d8e909086f6ad91bc Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 5 Nov 2024 15:18:32 -0500 Subject: Deprecate bit-width integer/num literals in favor of using type constructors --- examples/http/http.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/http/http.tm') diff --git a/examples/http/http.tm b/examples/http/http.tm index 934c8690..f64a5048 100644 --- a/examples/http/http.tm +++ b/examples/http/http.tm @@ -64,7 +64,7 @@ func _send(method:_Method, url:Text, data:Text?, headers=[:Text] -> HTTPResponse curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); } - code := 0[64] + code := Int64(0) inline C { CURLcode res = curl_easy_perform(curl); if (res != CURLE_OK) @@ -75,7 +75,7 @@ func _send(method:_Method, url:Text, data:Text?, headers=[:Text] -> HTTPResponse curl_slist_free_all(chunk); curl_easy_cleanup(curl); } - return HTTPResponse(code, "":join(chunks)) + return HTTPResponse(Int(code), "":join(chunks)) func get(url:Text, headers=[:Text] -> HTTPResponse): return _send(GET, url, !Text, headers) -- cgit v1.2.3