History

libmp: mptov: make it actually work (sync with 9front)

cinap_lenrek committed 7 years ago

Commit f389dc61 parent aa06c6a1 file · +1 −1Browse files

Unified · Split

libmp/mptov.c+1−1
@@ -47,7 +47,7 @@ mptov(mpint *b) · 46 unmodified lines
47 47
48 v = 0ULL;48 v = 0ULL;
49 for(s = 0; s < b->top; s++)49 for(s = 0; s < b->top; s++)
50 v |= b->p[s]<<(s*sizeof(mpdigit)*8);50 v |= (uvlong)b->p[s]<<(s*sizeof(mpdigit)*8);
51 51
52 if(b->sign > 0){52 if(b->sign > 0){
53 if(v > MAXVLONG)53 if(v > MAXVLONG)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t