]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/math.cpp
webapps.wiki: adding search bar
[factor.git] / vm / math.cpp
index 98be48275bfcc32fb609c89ea98aa16b9da6a7c8..ef56d265dcf95eaae7962feafbc0ef8dd03a48e5 100644 (file)
@@ -174,22 +174,22 @@ void factor_vm::primitive_bignum_shift() {
 
 void factor_vm::primitive_bignum_less() {
   POP_BIGNUMS(x, y);
-  ctx->replace(tag_boolean(bignum_compare(x, y) == bignum_comparison_less));
+  ctx->replace(tag_boolean(bignum_compare(x, y) == BIGNUM_COMPARISON_LESS));
 }
 
 void factor_vm::primitive_bignum_lesseq() {
   POP_BIGNUMS(x, y);
-  ctx->replace(tag_boolean(bignum_compare(x, y) != bignum_comparison_greater));
+  ctx->replace(tag_boolean(bignum_compare(x, y) != BIGNUM_COMPARISON_GREATER));
 }
 
 void factor_vm::primitive_bignum_greater() {
   POP_BIGNUMS(x, y);
-  ctx->replace(tag_boolean(bignum_compare(x, y) == bignum_comparison_greater));
+  ctx->replace(tag_boolean(bignum_compare(x, y) == BIGNUM_COMPARISON_GREATER));
 }
 
 void factor_vm::primitive_bignum_greatereq() {
   POP_BIGNUMS(x, y);
-  ctx->replace(tag_boolean(bignum_compare(x, y) != bignum_comparison_less));
+  ctx->replace(tag_boolean(bignum_compare(x, y) != BIGNUM_COMPARISON_LESS));
 }
 
 void factor_vm::primitive_bignum_not() {
@@ -238,10 +238,10 @@ void factor_vm::primitive_format_float() {
     localized_stream << std::setfill(fill[0]);
   }
   if (width >= 0) {
-    localized_stream << std::setw(width);
+    localized_stream << std::setw(static_cast<int>(width));
   }
   if (precision >= 0) {
-    localized_stream << std::setprecision(precision);
+    localized_stream << std::setprecision(static_cast<int>(precision));
   }
   localized_stream << value;
   const std::string& tmp = localized_stream.str();