File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ use core::intrinsics;
53
53
use core:: panic:: PanicInfo ;
54
54
55
55
use secp256k1:: ecdh:: SharedSecret ;
56
+ use secp256k1:: ffi:: types:: AlignedType ;
56
57
use secp256k1:: rand:: { self , RngCore } ;
57
58
use secp256k1:: serde:: Serialize ;
58
59
use secp256k1:: * ;
@@ -82,7 +83,7 @@ impl RngCore for FakeRng {
82
83
83
84
#[ start]
84
85
fn start ( _argc : isize , _argv : * const * const u8 ) -> isize {
85
- let mut buf = [ 0u8 ; 600_000 ] ;
86
+ let mut buf = [ AlignedType :: zeroed ( ) ; 37_000 ] ;
86
87
let size = Secp256k1 :: preallocate_size ( ) ;
87
88
unsafe { libc:: printf ( "needed size: %d\n \0 " . as_ptr ( ) as _ , size) } ;
88
89
@@ -161,5 +162,5 @@ fn panic(info: &PanicInfo) -> ! {
161
162
let mut buf = Print :: new ( ) ;
162
163
write ( & mut buf, * msg) . unwrap ( ) ;
163
164
buf. print ( ) ;
164
- unsafe { intrinsics:: abort ( ) }
165
+ intrinsics:: abort ( )
165
166
}
You can’t perform that action at this time.
0 commit comments