diff --git a/.gitignore b/.gitignore
index 9bea433..7562162 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.DS_Store
+/.swiftpm/xcode/package.xcworkspace/xcuserdata
diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/.swiftpm/xcode/xcuserdata/ominousdev.xcuserdatad/xcschemes/xcschememanagement.plist b/.swiftpm/xcode/xcuserdata/ominousdev.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..fff1d1f
--- /dev/null
+++ b/.swiftpm/xcode/xcuserdata/ominousdev.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,35 @@
+
+
+
+
+ SchemeUserState
+
+ Demo (Playground) 1.xcscheme
+
+ isShown
+
+ orderHint
+ 2
+
+ Demo (Playground) 2.xcscheme
+
+ isShown
+
+ orderHint
+ 3
+
+ Demo (Playground).xcscheme
+
+ isShown
+
+ orderHint
+ 1
+
+ Web3swift.xcscheme_^#shared#^_
+
+ orderHint
+ 0
+
+
+
+
diff --git a/Package.resolved b/Package.resolved
new file mode 100644
index 0000000..002edb7
--- /dev/null
+++ b/Package.resolved
@@ -0,0 +1,25 @@
+{
+ "object": {
+ "pins": [
+ {
+ "package": "BigInt",
+ "repositoryURL": "https://github.com/attaswift/BigInt.git",
+ "state": {
+ "branch": null,
+ "revision": "0ed110f7555c34ff468e72e1686e59721f2b0da6",
+ "version": "5.3.0"
+ }
+ },
+ {
+ "package": "CryptoSwift",
+ "repositoryURL": "https://github.com/krzyzanowskim/CryptoSwift.git",
+ "state": {
+ "branch": null,
+ "revision": "039f56c5d7960f277087a0be51f5eb04ed0ec073",
+ "version": "1.5.1"
+ }
+ }
+ ]
+ },
+ "version": 1
+}
diff --git a/Sources/secp256k1/scalar_4x64_impl.h b/Sources/secp256k1/scalar_4x64_impl.h
index 685bc99..53952ca 100755
--- a/Sources/secp256k1/scalar_4x64_impl.h
+++ b/Sources/secp256k1/scalar_4x64_impl.h
@@ -40,7 +40,7 @@ SECP256K1_INLINE static void secp256k1_scalar_set_int(secp256k1_scalar *r, unsig
SECP256K1_INLINE static unsigned int secp256k1_scalar_get_bits(const secp256k1_scalar *a, unsigned int offset, unsigned int count) {
VERIFY_CHECK((offset + count - 1) >> 6 == offset >> 6);
- return (uint)(a->d[offset >> 6] >> (offset & 0x3F)) & ((((uint64_t)1) << count) - 1);
+ return (unsigned int)(a->d[offset >> 6] >> (offset & 0x3F)) & ((((uint64_t)1) << count) - 1);
}
SECP256K1_INLINE static unsigned int secp256k1_scalar_get_bits_var(const secp256k1_scalar *a, unsigned int offset, unsigned int count) {
@@ -50,7 +50,7 @@ SECP256K1_INLINE static unsigned int secp256k1_scalar_get_bits_var(const secp256
return secp256k1_scalar_get_bits(a, offset, count);
} else {
VERIFY_CHECK((offset >> 6) + 1 < 4);
- return (uint)((a->d[offset >> 6] >> (offset & 0x3F)) | (a->d[(offset >> 6) + 1] << (64 - (offset & 0x3F)))) & ((((uint64_t)1) << count) - 1);
+ return (unsigned int)((a->d[offset >> 6] >> (offset & 0x3F)) | (a->d[(offset >> 6) + 1] << (64 - (offset & 0x3F)))) & ((((uint64_t)1) << count) - 1);
}
}