mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Formatting.
This commit is contained in:
		| @@ -1174,11 +1174,11 @@ JanetTable *janet_core_env(JanetTable *replacements) { | ||||
|                           "values.")); | ||||
|     templatize_varop(env, JANET_FUN_MODULO, "mod", 0, 1, JOP_MODULO, | ||||
|                      JDOC("(mod & xs)\n\n" | ||||
|                          "Returns the result of applying the modulo operator on the first value of xs with each remaining value. " | ||||
|                          "`(mod x 0)` is defined to be `x`.")); | ||||
|                           "Returns the result of applying the modulo operator on the first value of xs with each remaining value. " | ||||
|                           "`(mod x 0)` is defined to be `x`.")); | ||||
|     templatize_varop(env, JANET_FUN_REMAINDER, "%", 0, 1, JOP_REMAINDER, | ||||
|                      JDOC("(% & xs)\n\n" | ||||
|                          "Returns the remainder of dividing the first value of xs by each remaining value.")); | ||||
|                           "Returns the remainder of dividing the first value of xs by each remaining value.")); | ||||
|     templatize_varop(env, JANET_FUN_BAND, "band", -1, -1, JOP_BAND, | ||||
|                      JDOC("(band & xs)\n\n" | ||||
|                           "Returns the bit-wise and of all values in xs. Each x in xs must be an integer.")); | ||||
|   | ||||
| @@ -720,10 +720,10 @@ static JanetSignal run_vm(JanetFiber *fiber, Janet in) { | ||||
|             double x1 = janet_unwrap_number(op1); | ||||
|             double x2 = janet_unwrap_number(op2); | ||||
|             if (x2 == 0) { | ||||
|               stack[A] = janet_wrap_number(x1); | ||||
|                 stack[A] = janet_wrap_number(x1); | ||||
|             } else { | ||||
|               double intres = x2 * floor(x1 / x2); | ||||
|               stack[A] = janet_wrap_number(x1 - intres); | ||||
|                 double intres = x2 * floor(x1 / x2); | ||||
|                 stack[A] = janet_wrap_number(x1 - intres); | ||||
|             } | ||||
|             vm_pcnext(); | ||||
|         } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose