[Rd] [PATCH] fix CHECK_this_length in sprintf.c

Matthew Fowles Kulukundis matt.fowles at gmail.com
Tue Apr 5 17:17:30 CEST 2016


CHECK_this_length macro expands to multiple statements making it unsafe to
use in a single line `if` statement (as is happening near line 335).  This
fixes the macro using the standard `do { } while (0)` macro trick.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: r-sprintf.patch
Type: text/x-patch
Size: 758 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20160405/bbd3947a/attachment.bin>

More information about the R-devel mailing list