Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fair enough, reverted to the old buffer behavior, even though it soun…

…ds weird to have to do -5 to chop off 4 characters. Moving on.
  • Loading branch information...
commit 119d12f343eb2f4ae2b0177076b6dd743701a0f5 1 parent 8e742f7
nddrylliog authored
View
2  sdk/lang/Buffer.ooc
@@ -172,7 +172,7 @@ Buffer: class extends Iterable<Char> {
So the length of the substring is end-start */
substring: func (start: SSizeT, end: SSizeT) {
if(start < 0) start += size + 1
- if(end < 0) end += size
+ if(end < 0) end += size + 1
if(end != size) setLength(end)
if(start > 0) shiftRight(start)
}
View
2  source/rock/frontend/CommandLine.ooc
@@ -532,7 +532,7 @@ CommandLine: class {
}
modulePath := moduleFile path
- fullName := moduleName[0..-4] // strip the ".ooc"
+ fullName := moduleName[0..-5] // strip the ".ooc"
module := Module new(fullName, pathElement path, params, nullToken)
module token = Token new(0, 0, module)
module main = true
View
2  source/rock/middle/Module.ooc
@@ -331,7 +331,7 @@ Module: class extends Node {
printf("%s has been changed, recompiling... (%d vs %d), impPath = %s\n", _path toCString(), File new(impPath path) lastModified(), cached lastModified, impPath path toCString());
}
- cached = Module new(_path[0..-4], impElement path, params, nullToken)
+ cached = Module new(_path[0..-5], impElement path, params, nullToken)
// clean the cache
AstBuilder cache remove(absolutePath)
AstBuilder cache put(absolutePath, cached)
Please sign in to comment.
Something went wrong with that request. Please try again.