From ed4b43c4357fcf613a5a2274dea829c338028532 Mon Sep 17 00:00:00 2001 From: Jaysukh-409 Date: Thu, 6 Jun 2024 15:20:24 +0530 Subject: [PATCH 1/2] feat: add boolean datatype support in array/mostly-safe-casts --- .../array/mostly-safe-casts/lib/data.json | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lib/node_modules/@stdlib/array/mostly-safe-casts/lib/data.json b/lib/node_modules/@stdlib/array/mostly-safe-casts/lib/data.json index b120b5b8434c..2ee091460294 100644 --- a/lib/node_modules/@stdlib/array/mostly-safe-casts/lib/data.json +++ b/lib/node_modules/@stdlib/array/mostly-safe-casts/lib/data.json @@ -11,6 +11,7 @@ "uint8c": 0, "complex128": 1, "complex64": 1, + "bool": 0, "generic": 1 }, "float32": { @@ -25,6 +26,7 @@ "uint8c": 0, "complex128": 1, "complex64": 1, + "bool": 0, "generic": 1 }, "int32": { @@ -39,6 +41,7 @@ "uint8c": 0, "complex128": 1, "complex64": 0, + "bool": 0, "generic": 1 }, "int16": { @@ -53,6 +56,7 @@ "uint8c": 0, "complex128": 1, "complex64": 1, + "bool": 0, "generic": 1 }, "int8": { @@ -67,6 +71,7 @@ "uint8c": 0, "complex128": 1, "complex64": 1, + "bool": 0, "generic": 1 }, "uint32": { @@ -81,6 +86,7 @@ "uint8c": 0, "complex128": 1, "complex64": 0, + "bool": 0, "generic": 1 }, "uint16": { @@ -95,6 +101,7 @@ "uint8c": 0, "complex128": 1, "complex64": 1, + "bool": 0, "generic": 1 }, "uint8": { @@ -109,6 +116,7 @@ "uint8c": 1, "complex128": 1, "complex64": 1, + "bool": 1, "generic": 1 }, "uint8c": { @@ -123,6 +131,7 @@ "uint8c": 1, "complex128": 1, "complex64": 1, + "bool": 1, "generic": 1 }, "complex128": { @@ -137,6 +146,7 @@ "uint8c": 0, "complex128": 1, "complex64": 1, + "bool": 0, "generic": 1 }, "complex64": { @@ -151,6 +161,22 @@ "uint8c": 0, "complex128": 1, "complex64": 1, + "bool": 0, + "generic": 1 + }, + "bool": { + "float64": 0, + "float32": 0, + "int32": 0, + "int16": 0, + "int8": 0, + "uint32": 0, + "uint16": 0, + "uint8": 0, + "uint8c": 0, + "complex128": 0, + "complex64": 0, + "bool": 1, "generic": 1 }, "generic": { @@ -165,6 +191,7 @@ "uint8c": 0, "complex128": 0, "complex64": 0, + "bool": 0, "generic": 1 } } From 92f3df88c6ccd99df218332d1aee1de67ee67a9b Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Thu, 6 Jun 2024 12:51:08 -0700 Subject: [PATCH 2/2] refactor: update table --- .../@stdlib/array/mostly-safe-casts/lib/data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/array/mostly-safe-casts/lib/data.json b/lib/node_modules/@stdlib/array/mostly-safe-casts/lib/data.json index 2ee091460294..fff61e6c10fb 100644 --- a/lib/node_modules/@stdlib/array/mostly-safe-casts/lib/data.json +++ b/lib/node_modules/@stdlib/array/mostly-safe-casts/lib/data.json @@ -116,7 +116,7 @@ "uint8c": 1, "complex128": 1, "complex64": 1, - "bool": 1, + "bool": 0, "generic": 1 }, "uint8c": { @@ -131,7 +131,7 @@ "uint8c": 1, "complex128": 1, "complex64": 1, - "bool": 1, + "bool": 0, "generic": 1 }, "complex128": {