about summary refs log tree commit diff stats
path: root/src/loader/response.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-20 01:21:50 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-20 01:21:50 +0200
commitda326ead89287b50e06817025160681235df7a1f (patch)
tree1ac3709d5b7710174c82dd2c4e74738affbae02c /src/loader/response.nim
parentecfdd90f7947b65db1046cb2eeeaa8f1953b119f (diff)
downloadchawan-da326ead89287b50e06817025160681235df7a1f.tar.gz
fix compilation on 1.6.14
Diffstat (limited to 'src/loader/response.nim')
-rw-r--r--src/loader/response.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/response.nim b/src/loader/response.nim
index a25ea476..1133a5e4 100644
--- a/src/loader/response.nim
+++ b/src/loader/response.nim
@@ -79,7 +79,7 @@ proc blob(response: Response): Promise[JSResult[Blob]] {.jsfunc.} =
     GC_ref(s)
     let deallocFun = proc() =
       GC_unref(s)
-    let blob = newBlob(addr s[0], s.len, response.contenttype, deallocFun)
+    let blob = newBlob(unsafeAddr s[0], s.len, response.contenttype, deallocFun)
     ok(blob))
 
 proc json(ctx: JSContext, this: Response): Promise[JSResult[JSValue]]