Skip to content

Commit

Permalink
Merge pull request #7 from jjj11x/jdw/pi_fixup
Browse files Browse the repository at this point in the history
Jdw/pi fixup
  • Loading branch information
jjj11x committed Apr 27, 2022
2 parents 25db383 + 33cd262 commit a8ada6b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: [push]
on: [push, pull_request]

jobs:
stc_rpncalc_ci_job:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
wget

# install more up-to-date catch2
RUN wget http://mirrors.kernel.org/ubuntu/pool/universe/c/catch2/catch2_2.13.0-1_all.deb
RUN echo "1d501c7f817cfcd46dd1b79edc10896d catch2_2.13.0-1_all.deb" | md5sum --check --
RUN dpkg -i catch2_2.13.0-1_all.deb
RUN wget http://mirrors.kernel.org/ubuntu/pool/universe/c/catch2/catch2_2.13.7-1_amd64.deb
RUN echo "3ca43a3b3347ec2e220e0cc6e9c38859 catch2_2.13.7-1_amd64.deb" | md5sum --check --
RUN dpkg -i catch2_2.13.7-1_amd64.deb
4 changes: 3 additions & 1 deletion src/calc.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ void process_cmd(char cmd){
//////////
case '/':{
if (IsShiftedUp){
StackPtr--;
if (NoLift != 1){
StackPtr--;
}
pi_decn();
copy_decn(&stack(STACK_X), &AccDecn);
} else {
Expand Down
2 changes: 0 additions & 2 deletions src/decn/decn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1589,9 +1589,7 @@ void to_radian_decn(void) {
}

void pi_decn(void) {
set_dec80_zero(&BDecn);
copy_decn(&AccDecn, &DECN_PI);
mult_decn();
}

static void set_str_error(void){
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static void latch_on(void)

__xdata char EntryBuf[MAX_CHARS_PER_LINE + 1];
__xdata uint8_t ExpBuf[2];
__code const char VER_STR[32+1] = "STC RPN Calculator v1.13";
__code const char VER_STR[32+1] = "STC RPN Calculator v1.14";


enum {
Expand Down

0 comments on commit a8ada6b

Please sign in to comment.