| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 32bb554 commit 3bdd7e2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -689,12 +689,12 @@ MaybeLocal<Value> GetModulusString(Environment* env, const BIGNUM* n) { | |||
| 689 | 689 | } | |
| 690 | 690 | ||
| 691 | 691 | MaybeLocal<Value> GetExponentString(Environment* env, const BIGNUM* e) { | |
| 692 | - auto exponent_word = BignumPointer::GetWord(e); | ||
| 693 | - if (!exponent_word) return Null(env->isolate()); | ||
| 692 | + if (e == nullptr) return Null(env->isolate()); | ||
| 694 | 693 | auto bio = BIOPointer::NewMem(); | |
| 695 | 694 | if (!bio) [[unlikely]] | |
| 696 | 695 | return {}; | |
| 697 | - BIO_printf(bio.get(), "0x%" PRIx64, static_cast<uint64_t>(*exponent_word)); | ||
| 696 | + BIO_puts(bio.get(), "0x"); | ||
| 697 | + BN_print(bio.get(), e); | ||
| 698 | 698 | return ToV8Value(env->context(), bio); | |
| 699 | 699 | } | |
| 700 | 700 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments