RESOLVED FIXED 27406
Minor FrameLoader.cpp cleanup
https://bugs.webkit.org/show_bug.cgi?id=27406
Summary Minor FrameLoader.cpp cleanup
Adam Barth
Reported 2009-07-18 00:04:25 PDT
I was just looking at this code and it could be slightly better.
Attachments
patch (1.61 KB, patch)
2009-07-18 00:05 PDT, Adam Barth
jmalonzo: review+
Adam Barth
Comment 1 2009-07-18 00:05:42 PDT
Jan Alonzo
Comment 2 2009-07-18 01:24:04 PDT
Comment on attachment 33011 [details] patch r=me.
Adam Barth
Comment 3 2009-07-18 01:31:51 PDT
Sending WebCore/ChangeLog Sending WebCore/loader/FrameLoader.cpp Transmitting file data .. Committed revision 46088. http://trac.webkit.org/changeset/46088
Darin Adler
Comment 4 2009-07-18 10:39:23 PDT
Comment on attachment 33011 [details] patch I believe sizeof("xxxxxxxxx") will always return the size of a pointer.
Adam Barth
Comment 5 2009-07-18 10:48:45 PDT
Sending WebCore/ChangeLog Sending WebCore/loader/FrameLoader.cpp Transmitting file data .. Committed revision 46094. http://trac.webkit.org/changeset/46094
Adam Barth
Comment 6 2009-07-18 10:56:09 PDT
(In reply to comment #4) > (From update of attachment 33011 [details]) > I believe sizeof("xxxxxxxxx") will always return the size of a pointer. I'll write a reduced test case, but the javascriptURL tests pass.
Adam Barth
Comment 7 2009-07-18 10:59:54 PDT
abarth@zenque:~/tmp/sizeof$ cat main.c #include <stdio.h> #include <string.h> int main(void) { printf("%d\n", sizeof("A long string that has many bytes") - 1); printf("%d\n", strlen("A long string that has many bytes")); return 0; } abarth@zenque:~/tmp/sizeof$ gcc main.c abarth@zenque:~/tmp/sizeof$ ./a.out 33 33
Note You need to log in before you can comment on or make changes to this bug.