- Notifications
You must be signed in to change notification settings - Fork28
Commit65a588b
committed
Try to fix portability issue in enum renumbering (again).
The hack embodied in commit4ba61a4 no longer works after today's changeto allow DatumGetFloat4/Float4GetDatum to be inlined (commit14cca1b).Probably what's happening is that the faulty compilers are deciding thatthe now-inlined assignment is a no-op and so they're not required toround to float4 width.We had a bunch of similar issues earlier this year in the degree-basedtrig functions, and eventually settled on using volatile intermediatevariables as the least ugly method of forcing recalcitrant compilersto do what the C standard says (cf commit82311bc). Let's see ifthat method works here.Discussion: <4640.1472664476@sss.pgh.pa.us>1 parent6792263 commit65a588b
1 file changed
+14
-12
lines changedLines changed: 14 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 | 318 |
| |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
328 | 324 |
| |
329 |
| - | |
| 325 | + | |
330 | 326 |
| |
331 |
| - | |
332 |
| - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
336 | 336 |
| |
337 | 337 |
| |
338 | 338 |
| |
339 | 339 |
| |
| 340 | + | |
| 341 | + | |
340 | 342 |
| |
341 | 343 |
| |
342 | 344 |
| |
|
0 commit comments
Comments
(0)