diff --git a/packages/seacas/libraries/aprepro_lib/apr_getline.cc b/packages/seacas/libraries/aprepro_lib/apr_getline.cc index 3b651a7e92..ba6e10d4e4 100644 --- a/packages/seacas/libraries/aprepro_lib/apr_getline.cc +++ b/packages/seacas/libraries/aprepro_lib/apr_getline.cc @@ -65,7 +65,7 @@ namespace { int gl_width = 0; /* net size available for input */ int gl_extent = 0; /* how far to redraw, 0 means all */ int gl_overwrite = 0; /* overwrite mode */ - size_t gl_pos, gl_cnt = 0; /* position and size of input */ + int gl_pos, gl_cnt = 0; /* position and size of input */ char gl_killbuf[GL_BUF_SIZE] = ""; /* killed text */ const char *gl_prompt; /* to save the prompt string */ int gl_search_mode = 0; /* search mode flag */ @@ -452,7 +452,7 @@ namespace { void gl_yank() /* adds the kill buffer to the input buffer at current location */ { - auto len = strlen(gl_killbuf); + int len = strlen(gl_killbuf); if (len > 0) { if (gl_overwrite == 0) { if (gl_cnt + len >= GL_BUF_SIZE) { diff --git a/packages/seacas/libraries/aprepro_lib/apr_parser.cc b/packages/seacas/libraries/aprepro_lib/apr_parser.cc index 621c99010d..6bf0bb540e 100644 --- a/packages/seacas/libraries/aprepro_lib/apr_parser.cc +++ b/packages/seacas/libraries/aprepro_lib/apr_parser.cc @@ -1710,7 +1710,7 @@ namespace SEAMS { case 174: // exp: exp MOD exp { - if ((yystack_[0].value.val) == 0.) { + if ((int)(yystack_[0].value.val) == 0.) { (yylhs.value.val) = (int)(yystack_[2].value.val); yyerror(aprepro, "Zero divisor"); yyerrok; diff --git a/packages/seacas/libraries/aprepro_lib/aprepro.yy b/packages/seacas/libraries/aprepro_lib/aprepro.yy index ae82f9e444..022366b464 100644 --- a/packages/seacas/libraries/aprepro_lib/aprepro.yy +++ b/packages/seacas/libraries/aprepro_lib/aprepro.yy @@ -579,7 +579,7 @@ exp: NUM { $$ = $1; } } else $$ = $1 / $3; } - | exp MOD exp { if ($3 == 0.) + | exp MOD exp { if ((int)$3 == 0.) { $$ = (int)$1; yyerror(aprepro, "Zero divisor");