Commit 501d2e7
committed
bugfix: sf.net #899 trim( wstring ) causes crash if string is single space
- In fb_wstr_CalcDiff() the original expression is optimized with a SHR expression due the divide by unsigned power of 2. This doesn't work for negative values.
- Casting to intptr_t should not be needed as the pointer arithmetic alone should be sufficient to calculate distance betwee related pointers1 parent ae9a9f3 commit 501d2e7
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments