const and x64 fixes

This commit is contained in:
Trass3r 2011-11-29 17:40:46 +01:00
parent 6d25e0fe86
commit 74fdfbbb55
2 changed files with 3 additions and 3 deletions

2
cgi.d
View File

@ -981,7 +981,7 @@ class Cgi {
immutable(string[string]) get;
immutable(string[string]) post;
immutable(string[string]) cookies;
immutable(UploadedFile)[string] files;
immutable(UploadedFile[string]) files;
// Use these if you expect multiple items submitted with the same name. btw, assert(get[name] is getArray[name][$-1); should pass. Same for post and cookies.
// the order of the arrays is the order the data arrives

4
dom.d
View File

@ -2399,7 +2399,7 @@ class Document {
// found something in either branch...
if(idx != -1) {
// read till a quote or about 12 chars, whichever comes first...
int end = idx;
auto end = idx;
while(end < dataAsBytes.length && dataAsBytes[end] != '"' && end - idx < 12)
end++;
@ -4018,7 +4018,7 @@ class StyleSheet {
}
// unbelievable.
int indexOfBytes(immutable(ubyte)[] haystack, immutable(ubyte)[] needle) {
sizediff_t indexOfBytes(immutable(ubyte)[] haystack, immutable(ubyte)[] needle) {
auto found = std.algorithm.find(haystack, needle);
if(found.length == 0)
return -1;