diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-09-28 19:28:51 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-09-28 19:28:51 +0000 |
commit | 08fd45b4fba68f58d0e01c326296f9a4651f9c7b (patch) | |
tree | 28c6464b9c739e77389544550ff146b5935b419d /package/busybox/busybox-1.12.0-awk.patch | |
parent | 94b3420da9c94c3044faead59f145a99a098c423 (diff) | |
download | buildroot-novena-08fd45b4fba68f58d0e01c326296f9a4651f9c7b.tar.gz buildroot-novena-08fd45b4fba68f58d0e01c326296f9a4651f9c7b.zip |
busybox: bump 1.11.x and 1.12.x versions
Diffstat (limited to 'package/busybox/busybox-1.12.0-awk.patch')
-rw-r--r-- | package/busybox/busybox-1.12.0-awk.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/package/busybox/busybox-1.12.0-awk.patch b/package/busybox/busybox-1.12.0-awk.patch deleted file mode 100644 index f89ae043f..000000000 --- a/package/busybox/busybox-1.12.0-awk.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- busybox-1.12.0/editors/awk.c Wed Aug 6 00:56:11 2008 -+++ busybox-1.12.0-awk/editors/awk.c Fri Aug 29 01:17:05 2008 -@@ -973,7 +973,12 @@ - - } else if (*p == '.' || isdigit(*p)) { - /* it's a number */ -- t_double = strtod(p, &p); -+#if ENABLE_DESKTOP -+ if (p[0] == '0' && (p[1] | 0x20) == 'x') -+ t_double = strtoll(p, &p, 0); -+ else -+#endif -+ t_double = strtod(p, &p); - if (*p == '.') - syntax_error(EMSG_UNEXP_TOKEN); - tc = TC_NUMBER; -@@ -2034,28 +2039,30 @@ - setvar_p(res, s); - break; - -+ /* Bitwise ops must assume that operands are unsigned. GNU Awk 3.1.5: -+ * awk '{ print or(-1,1) }' gives "4.29497e+09", not "-2.xxxe+09" */ - case B_an: -- setvar_i(res, (long)getvar_i(av[0]) & (long)getvar_i(av[1])); -+ setvar_i(res, (unsigned long)getvar_i(av[0]) & (unsigned long)getvar_i(av[1])); - break; - - case B_co: -- setvar_i(res, ~(long)getvar_i(av[0])); -+ setvar_i(res, ~(unsigned long)getvar_i(av[0])); - break; - - case B_ls: -- setvar_i(res, (long)getvar_i(av[0]) << (long)getvar_i(av[1])); -+ setvar_i(res, (unsigned long)getvar_i(av[0]) << (unsigned long)getvar_i(av[1])); - break; - - case B_or: -- setvar_i(res, (long)getvar_i(av[0]) | (long)getvar_i(av[1])); -+ setvar_i(res, (unsigned long)getvar_i(av[0]) | (unsigned long)getvar_i(av[1])); - break; - - case B_rs: -- setvar_i(res, (long)((unsigned long)getvar_i(av[0]) >> (unsigned long)getvar_i(av[1]))); -+ setvar_i(res, (unsigned long)getvar_i(av[0]) >> (unsigned long)getvar_i(av[1])); - break; - - case B_xo: -- setvar_i(res, (long)getvar_i(av[0]) ^ (long)getvar_i(av[1])); -+ setvar_i(res, (unsigned long)getvar_i(av[0]) ^ (unsigned long)getvar_i(av[1])); - break; - - case B_lo: |