Skip to content

Commit

Permalink
Merge pull request #1 from bendmorris/master
Browse files Browse the repository at this point in the history
Bendmorris master
  • Loading branch information
hoothin committed Apr 13, 2015
2 parents b5caa20 + 4653d72 commit bc32590
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spinehaxe/JsonUtils.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,20 @@ class JsonUtils {
return cast value;
}

static private function getFloatArray (map:JsonNode, name:String, scale:Float) : Array<Float> {
var values:Array<Float> = getDynamic(map, name);
public static function getFloatArray (map:JsonNode, name:String, scale:Float) : Array<Float> {
var values:Array<Float> = cast getDynamic(map, name);
if (scale != 1) {
for (i in 0 ... values.length)
values[i] *= scale;
}
return values;
}

static private function getIntArray (map:JsonNode, name:String) : Array<Int> {
public static function getIntArray (map:JsonNode, name:String) : Array<Int> {
return cast getDynamic(map, name);
}

static private function getUintArray (map:JsonNode, name:String) : Array<UInt> {
public static function getUintArray (map:JsonNode, name:String) : Array<UInt> {
return cast getDynamic(map, name);
}

Expand Down

0 comments on commit bc32590

Please sign in to comment.