forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb822ae1
committed
Use lfirst_int in cmp_list_len_contents_asc
The function added inbe45be9 is comparing integer lists (IntList) bylength and contents, but there were two bugs. Firstly, it used intVal()to extract the value, but that's for Value nodes, not for extracting intvalues from IntList. Secondly, it called it directly on the ListCell,without doing lfirst(). So just do lfirst_int() instead.Interestingly enough, this did not cause any crashes on the buildfarm,but valgrind rightfully complained about it.Discussion:https://postgr.es/m/bf3805a8-d7d1-ae61-fece-761b7ff41ecc@postgresfriends.org1 parentd00fbdc commitb822ae1
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1750 | 1750 |
| |
1751 | 1751 |
| |
1752 | 1752 |
| |
1753 |
| - | |
1754 |
| - | |
| 1753 | + | |
| 1754 | + | |
1755 | 1755 |
| |
1756 | 1756 |
| |
1757 | 1757 |
| |
|
0 commit comments
Comments
(0)