mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Merge pull request #149 from bambooleafz/master
this should fixes issue #148
This commit is contained in:
2
qfunc.c
2
qfunc.c
@@ -1953,7 +1953,7 @@ qispowerof2(NUMBER *q, NUMBER **qlog2)
|
|||||||
* Set *qlog2 to base 2 logarithm of q, which will be a negative value,
|
* Set *qlog2 to base 2 logarithm of q, which will be a negative value,
|
||||||
* and return true.
|
* and return true.
|
||||||
*/
|
*/
|
||||||
*qlog2 = utoq(log2);
|
**qlog2 = *utoq(log2);
|
||||||
(*qlog2)->num.sign = !(*qlog2)->num.sign; /* set *qlog2 to -log2 */
|
(*qlog2)->num.sign = !(*qlog2)->num.sign; /* set *qlog2 to -log2 */
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user