Skip to content

Commit e44743a

Browse files
committed
may need to override, cannot be private
1 parent 3697677 commit e44743a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/MiscOps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ trait CGenMiscOps extends CGenEffect {
7575
val IR: MiscOpsExp
7676
import IR._
7777

78-
private def format(s: Exp[Any]): String = {
78+
def format(s: Exp[Any]): String = {
7979
remap(s.tp) match {
8080
case "uint16_t" => "%c"
8181
case "bool" | "int8_t" | "int16_t" | "int32_t" => "%d"
@@ -86,7 +86,7 @@ trait CGenMiscOps extends CGenEffect {
8686
}
8787
}
8888

89-
private def quoteRawString(s: Exp[Any]): String = {
89+
def quoteRawString(s: Exp[Any]): String = {
9090
remap(s.tp) match {
9191
case "string" => quote(s) + ".c_str()"
9292
case _ => quote(s)

0 commit comments

Comments
 (0)