]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix comments on the OP_Divide and OP_Remainder operators, especially the
authordrh <drh@noemail.net>
Fri, 15 Nov 2013 18:58:37 +0000 (18:58 +0000)
committerdrh <drh@noemail.net>
Fri, 15 Nov 2013 18:58:37 +0000 (18:58 +0000)
"Synopsis:" comment, so that they agree with the actual implementation.

FossilOrigin-Name: cc17f1f05f15e9c62659a49c0656ff2b667bf701

manifest
manifest.uuid
src/vdbe.c

index 79187a0a857f74e6cdb147dec89ab4c6cafc01fc..a346bf8ac2e4de52835bc060f2dc1495733a4fe2 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Add\sthe\s--query\soption\sto\sthe\swordcount\stest\sprogram.
-D 2013-11-15T13:12:30.792
+C Fix\scomments\son\sthe\sOP_Divide\sand\sOP_Remainder\soperators,\sespecially\sthe\n"Synopsis:"\scomment,\sso\sthat\sthey\sagree\swith\sthe\sactual\simplementation.
+D 2013-11-15T18:58:37.334
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 8a07bebafbfda0eb67728f4bd15a36201662d1a1
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -280,7 +280,7 @@ F src/update.c 3de7e657b98ac67338d775c114a4068faf732402
 F src/utf.c 6fc6c88d50448c469c5c196acf21617a24f90269
 F src/util.c 2fa6c821d28bbdbeec1b2a7b091a281c9ef8f918
 F src/vacuum.c 3728d74919d4fb1356f9e9a13e27773db60b7179
-F src/vdbe.c d53b6b7e721b18c42754f10d68e75845e387f2ba
+F src/vdbe.c 5573893423aec2d64871e8d504fadbcdaad39fed
 F src/vdbe.h c06f0813f853566457ce9cfb1a4a4bc39a5da644
 F src/vdbeInt.h 62eb680327011f3a4b0336642b0ca9d6ecc6eb91
 F src/vdbeapi.c 93a22a9ba2abe292d5c2cf304d7eb2e894dde0ed
@@ -1139,7 +1139,7 @@ F tool/vdbe-compress.tcl f12c884766bd14277f4fcedcae07078011717381
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh d1a6de74685f360ab718efda6265994b99bbea01
 F tool/win/sqlite.vsix 030f3eeaf2cb811a3692ab9c14d021a75ce41fff
-P d99a30a25d6102c389f1fb5ec389c137168615e9
-R 0d314918704a2d9deceec12d1b561362
+P 5960d11eba4fc6ca136331279689424d03bd6e76
+R eeac4cc42ec89642fb7c3d8492dc346d
 U drh
-Z 4de182ff7f969e11fcd8166760e38fe1
+Z cf9b95755a71f68840dd49a0488c3357
index d03acca621baa0e82b53f4852cb384ed7dc302ff..479ceb1e91f4ab1638aeaaecf5e8ef162d5c1477 100644 (file)
@@ -1 +1 @@
-5960d11eba4fc6ca136331279689424d03bd6e76
\ No newline at end of file
+cc17f1f05f15e9c62659a49c0656ff2b667bf701
\ No newline at end of file
index c67a347b4ca82ab452972d94b8fb5e213078d8ff..1cd7be94ea2952e22c9c3cdca54711a84724e067 100644 (file)
@@ -1322,7 +1322,7 @@ case OP_Concat: {           /* same as TK_CONCAT, in1, in2, out3 */
 ** If either input is NULL, the result is NULL.
 */
 /* Opcode: Divide P1 P2 P3 * *
-** Synopsis:  r[P3]=r[P1]/r[P2]
+** Synopsis:  r[P3]=r[P2]/r[P1]
 **
 ** Divide the value in register P1 by the value in register P2
 ** and store the result in register P3 (P3=P2/P1). If the value in 
@@ -1330,11 +1330,11 @@ case OP_Concat: {           /* same as TK_CONCAT, in1, in2, out3 */
 ** NULL, the result is NULL.
 */
 /* Opcode: Remainder P1 P2 P3 * *
-** Synopsis:  r[P3]=r[P1]%r[P2]
+** Synopsis:  r[P3]=r[P2]%r[P1]
 **
-** Compute the remainder after integer division of the value in
-** register P1 by the value in register P2 and store the result in P3. 
-** If the value in register P2 is zero the result is NULL.
+** Compute the remainder after integer register P2 is divided by 
+** register P1 and store the result in register P3. 
+** If the value in register P1 is zero the result is NULL.
 ** If either operand is NULL, the result is NULL.
 */
 case OP_Add:                   /* same as TK_PLUS, in1, in2, out3 */